The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function RGBColorDistance (c1, c2: TColor): double;

The function RGBColorDistance calculates the Euclidean distance of the two colors c1 and c2 using the RGB color space. The resulting distance may take any value between 0.0 (identical colors) and 1.0 (most dissimilar colors).

Last Update: 2012-Oct-20