RainbowColor

function RainbowColor(frac: double): TColor32;


This function returns a color in the rainbow spectrum based on frac (assuming it's between 0.0 & 1.0). If frac is outside that range the return color will be clRed32.

Rainbow colors progress from:
clRed32
clYellow32
clLime32
clAqua32
clBlue32
clFuchsia32
clRed32