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



HSLtoRGB


Unit: SDL_sdlcolors
Class: none
Declaration: procedure HSLtoRGB (Hue, Sat, Lum: double; var r, g, b: integer);

The function HSLtoRGB transforms a color defined in the HSL (hue/saturation/luminosity) color space by the parameters Hue (valid range: 0..360), Sat (saturation, valid range: 0..1), and Lum (luminosity, valid range: 0..1) into the RGB (red/green/blue) color space. The variable parameters r, g, and b return the red, green, and blue values, respectively.



Last Update: 2023-Feb-06