screen

screen.screen.wait_colors

Declaration
lua
screen.wait_colors(colorTable [, timeout_s, tolerance])
Description
Wait for ALL colors to match simultaneously. Polls every 100ms.
Parameters
NameTypeRequiredDefaultDescription
colorTabletableRequired—Array of {x, y, r, g, b}
timeout_snumberOptional10.0
toleranceintegerOptional0
Return Values
TypeDescription
booleantrue if all matched
Example
lua
screen.wait_colors({{100,200,255,0,0},{300,400,0,255,0}}, 5)