Dapatkan indeks piksel kanvas

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