jpdevries / png-pixel

Draw pixels in PNG easy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

png-pixel

npm version

Draw pixels in PNG easy.

Installation

npm install png-pixel --save

Example

const PNGPixel = require('png-pixel');

PNGPixel.add('input.png', 'output.png', [
    {x: 0, y: 0, color: '24B3E3'},
    {x: 1, y: 1, color: 'E32437'},
]);

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

About

Draw pixels in PNG easy.


Languages

Language:JavaScript 100.0%