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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
colorTable | table | Required | — | Array of {x, y, r, g, b} |
timeout_s | number | Optional | 10.0 | |
tolerance | integer | Optional | 0 |
Return Values
| Type | Description |
|---|---|
| boolean | true if all matched |
Example
lua
screen.wait_colors({{100,200,255,0,0},{300,400,0,255,0}}, 5)