Is anyone else experiencing a significant lag when trying to retrieve the state of a single pixel on the canvas?
Take a look at my JS code below:
var state = ctx.getImageData(x,y,1,1).data;
state = 'rgba(' + state[0] + ',' + state[1] + ',' + state[2] + ',' + state[3] + ')';
return state;
I'm curious if there are any alternative methods available for obtaining the state of a single pixel on the canvas that might be more efficient. Any suggestions?