Find color at co-ord?

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

Find color at co-ord?
  1. Unread #1 - Jun 25, 2009 at 11:27 PM
  2. shadowsXYZ
    Referrals:
    0

    shadowsXYZ Guest

    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
     
  3. Unread #2 - Jun 26, 2009 at 9:18 PM
  4. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site