Results 1 to 7 of 7

Thread: How to check if color is in tolerance?

  1. #1
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default How to check if color is in tolerance?

    Hello,
    so how to check if one color is fitting in range of other color's tolerance?
    Simba Code:
    var
    a :TColor; // could be integer too ,is there any difference?
    begin
     a := 459620;
     Result := (a = 459521);
    end;

    // here it simply check if color = color ,but i need  something like this:
     function IsColorInToleranceRange(Color1,Color2,Tolerance) : Boolean

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    A bit conquer but I think autocoloraid can kind of do this?

    You could use findcolorSSpiraltolerance and debug/paint it to see matches.

  3. #3
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    A bit conquer but I think autocoloraid can kind of do this?
    Where is autocolorraid I cant find it on functionlist ?

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    It's a program.
    Look at the link to my scripting tutorials in my sig, go to autocoloraid one, look in description box for a link to it.

  5. #5
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    Ow ,It's ACA. I knew only acronym. But no ,I need my script do it for me while running

    Maybe i will try to use one-point DTM ,but it might be slower I think.

    edit
    Ok , i made one-point DTM with 10 tolerance and I have what I want.
    Last edited by bg5; 01-19-2012 at 09:40 AM.

  6. #6
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Similarcolorstolerance
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  7. #7
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    Ty ,exactly ,what i need.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •