image.img:find_color
Declaration
lua
img:find_color(color_table [, similarity] [, x1, y1, x2, y2])
Description
Search color pattern on image (same as screen.find_color but on image buffer).
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
color_table | table | Required | — | XXTouch format |
similarity | integer | Optional | 100 | |
x1,y1,x2,y2 | integer | Optional | Full image |
Return Values
| Type | Description |
|---|---|
| integer | X |
| integer | Y |