All I need is to get the state of a single pixel on the canvas but I've noticed that it's horribly slow.
Here's my JS
var state = ctx.getImageData(x,y,1,1).data;
state = 'rgba(' + state[0] + ',' + state[1] + ',' + state[2] + ',' + state[3] + ')';
return state;
Is there an alternative to getting the state of a single pixel on the canvas?
drawImage), and then only get the imagedata of that … but whether this is gonna be any “faster” isn’t a given.