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



HSItoRGB


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

The function HSItoRGB transforms a color defined in the HSI (hue/saturation/intensity) color space by the parameters Hue (valid range: 0..360), Sat (saturation, valid range: 0..1), and Intens (intensity, 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.

Example: This procedure is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code):colorcalc



Last Update: 2014-Aug-13