Get Color at Point (screen.get_color)
Declaration
color = screen.get_color(x, y)
Parameters
- x, y
Integer. Target coordinates.
Returns
- color
Integer. RGB value of the point.
Description
Get the color at a screen coordinate.
Example
local c = screen.get_color(512, 133)
if c==0xffffff then
sys.alert("Point 512,133 is pure white")
end
Note: Uses sys.alert