png-pixel

2.0.0 • Public • Published
Logo

npm version

Installation

npm install png-pixel --save

Usage

const PNGPixel = require('png-pixel')
 
PNGPixel.add('input.png', 'output.png', [
    {x: 14, y: 10, color: '#24B3E3'},
    {x: 14, y: 11, color: '#E32437'},
    {x: 2, y: 5, color: 'E4238E', opacity: 128} // opacity is a 0-255
]).then(() => console.log('PNG successfully written'))

Note: Input file need to be already exist before adding pixels.

Readme

Keywords

Package Sidebar

Install

npm i png-pixel

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

759 kB

Total Files

104

Last publish

Collaborators

  • semanser