Answers for "get index pixel of canvas"

1

get index pixel of canvas

var index = pixel.y * (canvas.width * 4) + pixel.x * 4;
Posted by: Guest on August-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language