Adblock breaks this site

Colour Finding Algorithm

Discussion in 'Programming General' started by Michael3455, Nov 13, 2007.

  1. Michael3455

    Michael3455 Active Member

    Joined:
    Sep 11, 2005
    Posts:
    134
    Referrals:
    0
    Sythe Gold:
    0
    Colour Finding Algorithm

    Does anyone have a nice, reasonably efficient, algorithm for finding a colour on the screen? I wouldn't mind trying my hand at some simple bots. Just for a giggle.
     
  2. xenonium

    xenonium Guest

    Referrals:
    0
    Colour Finding Algorithm

  3. Michael3455

    Michael3455 Active Member

    Joined:
    Sep 11, 2005
    Posts:
    134
    Referrals:
    0
    Sythe Gold:
    0
    Colour Finding Algorithm

    From what I saw on that sight, it doesn't offer a Java binding for it. However the 'fly' stuff looks pretty cool, but annoying and would make things run slower.

    I'll check around on google to see for some more stuff of course.
     
  4. Varreon

    Varreon Member

    Joined:
    Nov 23, 2007
    Posts:
    59
    Referrals:
    0
    Sythe Gold:
    0
    Colour Finding Algorithm

    Its been a while since I've used java, but Im pretty sure the Robot class can get a pixel's color. Why dont you just iterate through where ever you're scanning, retrive pixel color, and act from there?
     
< What Sort Of Things Did You Make When You Started VB? | helpful INCP for SCA script >


 
 
Adblock breaks this site