screen.screen.wait_color
Declaration
lua
screen.wait_color(x, y, r, g, b [, timeout, tolerance])
Description
Wait until pixel matches color.
Parameters
`x,y` — coordinates
`r,g,b` — target color
`timeout` (optional) — seconds
`tolerance` (optional) — color tolerance
Return Values
`boolean`
Example
lua
local ok = screen.wait_color(100, 100, 255, 0, 0, 10)