I would like to change the color of the image/canvas. My existing code:
var loader = new PxLoader()
var image = loader.addImage('images/balloon.png')
loader.addCompletionListener(functio() {
var canvas = $("<canvas>").attr("width", "200").attr("height", "200");
var context = canvas[0].getContext('2d');
context.clearRect(0, 0, 200, 200);
context.drawImage(image, 0, 0);
// colorize??????
});
How can I colorize it - further manipulation of the context (I would like to use Pixastic.process if possible)?