Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Fri Nov 22, 2024 2:09 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Find pixel pattern
Thanked: 1 time(s)  Unread post Posted: Sun Jun 27, 2010 9:00 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
Finds a pattern of pixels with the specified colors, placed relatively to each other, exactly as specified.

Each color may vary +/- the "Range" argument.

Populating the arguments for this instruction, is easiest done, using the investigator to mark each pixel of the pattern you want to search for, you can specify 2 ~ 250 colors.

In the screen dump below, I've used the Investigator to mark the pixel pattern needed, in order to recognize the BE Robot.
Attachment:
pixelPattern.png
pixelPattern.png [ 114.13 KiB | Viewed 2544 times ]


The syntax of the pattern is (RGB colors):"R,G,B,X change, Y change, R,G,B, X change, Y change etc."

Usage:
Code:
 begin
     Color.Find pixel pattern("3,7,89,2,10,21,21,21,-6,202,1,9,190,195,189,13,2,180,180,180,12,-12,202,5,1,176,181,177", "0", "yes", "variableForX", "variableForY")
 end

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group