|
Post by AnkuLua on Jan 31, 2016 14:40:44 GMT
New Method
getColor(PSMRL [, seconds]) This function will return 3 value (R, G, B) of the target location. For better efficiency, AnkuLua transforms the images to grayscale before doing recognition. Therefore, it's hard for AnkuLua to recognize the image is color or not. And in some games, the button is just in grey to mean other condition. In this case, users can use this function to check the image is color or not.
r, g, b = getColor("target.png") if (r == b and r == g) then -- it's grayscale
|
|