How can I get the pixel data from outside the canvas?

118 views Asked by At

In Khan Academy computer programming environment, I can use get(x,y,width,height) to capture the pixel data as an image.

var img = get(x,y,width,height);//make a variable that stores the image

Then, I can display the image like this: image(img,x,y,width,height);

Is there a way I can retrieve the pixels that would be outside of the screen?

Thanks!

0

There are 0 answers