moose_are_fun
2009-11-12 21:09:30
In functions requiring "tolerance", what is the maximum range? It appears that 0 is the minimum (that is, specifying comparison of the exact color). All the documentation says is this:
And:
Is it limitless? Doesn't it end at some point? Or, is it relying on the values of the color?
Thanks.
function SimilarColors(col1, col2, tolerance: Integer): Boolean;
Function to test weather two colors are within tolerance range. If they are within range, it returns true, if not false.
And:
function FindColorTolerance(var x, y: Integer; color, xs, ys, xe, ye: Integer; Tolerance: Integer): Boolean;
Works like the regular FindColor function but with a tolerance parameter for finding any similar color. Tolerance is used to find a color in range of the color you are looking for. The greater color range you want, the higher the tolerance parameter should be.
Is it limitless? Doesn't it end at some point? Or, is it relying on the values of the color?
Thanks.