Log in

View Full Version : FindColor(var x,y,color,xs,ys,xe,ye)



TheGodfather
02-10-2007, 09:24 PM
Hi,sorry if this question is kind of retarded, but I'm confused on the FindColor procedure.

I don't understand what the xs,ys,xe,ye parts are. I looked in the tutorials but I dont understand comepletely what those values are supposed to do. I'd appreciate it if someone were to explain or give me an example of what those values are supposed to do.

If I understand correctly, they are supposed to give the region/area in where the color should be found. If im wrong correct me please. Thanks.

Mjordan
02-10-2007, 10:14 PM
yes im wondering about this too, i somewhat understand it, but not fully. i think it is something like this: FindColor(x,y,156982,548,252,65,103)
the 156982 is the color you want to find. then the four sets of numbers after that are the coordinates of the box(top left and bottom right corners of box i believe) which you want to find the color within.

whales
02-11-2007, 12:03 AM
Yup you hit it. Its just the coordinates you want the search to start from and end at. You can get these coords by specifying the RS screen and then moving your mouse to the point you want to start from and then look at the bottom left corner of SCAR and there should be a number then a colon. The first being your X and the second your Y. And repeat for the end point.

Mjordan
02-11-2007, 12:48 AM
you can also use FindColorSpiralTolerance. its the same thing except there will be an extra number at the end. the extra number being the tolerance.

whales
02-11-2007, 12:59 AM
I would use SRL's coloring finding functions for best results

TheGodfather
02-11-2007, 01:43 AM
thanks guys.