procedure ColorToleranceSpeed(x: Integer);
Sets the speed of tolerance comparisons. ColorToleranceSpeed(1) is a little slower then 0 but more accurate. ColorToleranceSpeed(0) is faster but not as accurate as 1. ColorToleranceSpeed(2) uses Hue, Saturation and Lightness to determine color similarity. ColorToleranceSpeed(3) uses the CIE colorspace to compare colors (XYZ), it's usually fairly slower than the other modes but it's extremely accurate.
function GetColorToleranceSpeed: Integer;
Returns the current tolerancespeed.
procedure SetColorspeed2Modifiers(huemodifier, saturationmodifier: Extended);
These work when ColorToleranceSpeed(2) has been set. Normally Tolerance parameter in this mode applies to Luminance directly. For an example, SimilarColors(c1, c2, 10) would work if both colors differ by 10 max luminance. After calling SetColorspeed2Modifiers(0.2, 2) it would mean that SimilarColors(c1, c2, 10) would check for Hue in range of 2 and Saturation in range of 20. Default huemodifier and saturationmodifier is 0.2.
procedure GetColorspeed2Modifiers(var huemodifier, saturationmodifier: Extended);
Gets the current Colorspeed2 modifiers.
procedure SetColorspeed3Modifiers(Sensitivity: Integer);
This works when ColorToleranceSpeed(3) has been set. This sets the Sensitivity of the 3th color comparison mode. The default Sensitivity is 4. (Note that this is carefully chosen and will be sufficient in most cases.)
procedure GetColorspeed3Modifiers(var Sensitivity: Integer);
Gets the current Colorspeed2 modifiers.