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 InterpolateColor (cl1, cl2: TColor; Level: double): TColor;

The function InterpolateColor calculates an interpolated color between the two color extremes cl1 and cl2. The parameter Level which may vary between 0.0 and 1.0 controls how the two extreme colors are mixed. A zero value returns color cl1, a value of 1.0 returns cl2, any value between returns a mixed color.

Last Update: 2015-Mai-11