2.0.0 • Published 6 years ago

png-pixel v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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.

2.0.0

6 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago