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....



ColorToHSL


Unit: SDL_sdlcolors
Class: none
Declaration: procedure ColorToHSL (Color: TColor; var Hue, Sat, Lum: double);

The procedure ColorToHSL transforms the color defined by the parameter Color (RGB color space) into the HSL color space. The variable parameters Hue, Sat, and Lum return the hue (0..360), the saturation (0..1), and the luminosity (0..1), respectively.



Last Update: 2023-Feb-06