SRL Archive - OSR Help

How to check if color is in tolerance?


bg5

2012-01-19 03:49:25

Hello,
so how to check if one color is fitting in range of other color's tolerance?

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

YoHoJo

2012-01-19 03:51:21

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

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

bg5

2012-01-19 03:55:58

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


Where is autocolorraid I cant find it on functionlist ?

YoHoJo

2012-01-19 04:05:07

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.

bg5

2012-01-19 04:12:47

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.

noidea

2012-01-19 07:54:17

Similarcolorstolerance

bg5

2012-01-19 08:45:09

Ty ,exactly ,what i need.