Difference between revisions of "GetTolerance"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function GetTolerance(Col1, Col2: Integer): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== This...")
 
 
Line 5: Line 5:
  
 
==Availability==
 
==Availability==
SCAR Divi 3.00 > Current
+
SCAR Divi 3.21 > Current
  
 
==Description==
 
==Description==

Latest revision as of 10:17, 29 June 2011

Definition

function GetTolerance(Col1, Col2: Integer): Integer;

Availability

SCAR Divi 3.21 > Current

Description

This function calculates the tolerance required by the active tolerance algorithm to match the colors to each other. The active tolerance algorithm can be changed with ColorToleranceSpeed.

Example

begin
  WriteLn(GetTolerance(125, 126));
  WriteLn(GetTolerance(125, 127));
end.

Output:

1
2

See Also