Adblock breaks this site

Find color at co-ord?

Discussion in 'Scar/Simba Help' started by shadowsXYZ, Jun 25, 2009.

  1. shadowsXYZ

    shadowsXYZ Guest

    Referrals:
    0
    Find color at co-ord?

    Ok, I'm completely to new to SCAR but as I know JAVA, its pretty easy to get the hang off and I know the basics.

    So I need a line to find the color of the pixel at a particular co-ord...
    Anytips on how to do so?

    And incase you guys can suggest a more effecient way of doing this; what I want to do is:
    While pixel (x,y) is color (red) then do this
     
  2. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Find color at co-ord?

    Code:
    program Test;
    var
      color : Integer;
    begin
      color := ClRed; //your color here
      While GetColor(X, Y) Do
        Writeln('Hello World!');
    end.
    Try looking at tutorials for help :) also if you want to go deeper: http://www.villavu.com/forum
     
< SCAR Help. | help >


 
 
Adblock breaks this site