#simplePNG.js
Example: http://jsfiddle.net/M8R68/
#Methods
Parameters in italics are optional
- object.init(width,height_,r,g,b_) - Initilises the PNG object and sets a background colour
- object.getPixels() - Returns array of pixel RGB data
- object.setPixels(array) - Sets RGB pixel data
- object.setPixel(x,y_,r,g,b_) - Sets colour of pixel at x,y
- object.fill(r,g,b) - Fills image with single colour
- object.setColour(r,g,b) - Sets cursor colour for fill and setPixel
- object.output(raw) - Returns base64 encoded PNG data URI, or raw PNG data