Obtenha Índice Pixel of Canvas

var index = pixel.y * (canvas.width * 4) + pixel.x * 4;
MunchDuster