node-micropng
A tiny pixel manipulation helper for node.js using pngjs. It also includes the option to write a png image directly to a server for quick testing and prototyping.
Installation
npm install micropng
API documentation
constructor
var MicroPNG = ;var png = 200 200; // new png of width and height 200
point
Paints a pixel a particular color
png; // at (5, 5) make a point with RGB value of 50,50,50
background
Fills entire image with a color
pngbackground255255255;
rect
png; // unfilled red rectangle from (0,0) to (200,200)png; // filled grey rectanglepng; // grey rectangle with red fill
exportFile
Exports the image to a file
png;
exportServer
Runs a local server on a given port serving the image
png;