04-12-2024, 07:36 AM
This is an unofficial answer ...
(unofficial = might be incomplete or even confusing .... lol ....)
pixel(x,y) returns the color at position (x, y) as an array [r, g, b, a]
click the image to zoom in
(unofficial = might be incomplete or even confusing .... lol ....)
pixel(x,y) returns the color at position (x, y) as an array [r, g, b, a]
Code:
'pixel(x,y) returns the color at position (x, y) as an array [r, g, b, a]
getcolor=pixel(150,150)
wln getcolor
wln
write "RGBA "
for i = 0 to 3
write getcolor[i]+" "
next
click the image to zoom in