pget = "pixel get"
pget( x, y )
|x||the distance from the left side of the screen.|
|y||the distance from the top side of the screen.|
This function will return the color number (0-15) of a single pixel currently drawn at the (x,y) coordinate specified. If you request a pixel that is outside of the screen, then
pget will return 0 (zero).
pset(10,20,8) --draw at (10,20), a red pixel pixel_color = pget(10,20) --returns 8 (red)
14 Oct 2023