GetTolerance
From SCAR Divi Manual
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