GetTolerance

From SCAR Divi Manual
Revision as of 10:17, 29 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function GetTolerance(Col1, Col2: Integer): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== This...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

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

Availability

SCAR Divi 3.00 > 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