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



AdjustColorIntSat


Unit: SDL_sdlcolors
Class: none
Declaration: function AdjustColorIntSat (Color: TColor; DeltaSat, DeltaInt: double): TColor;

The function AdjustColorIntSat adjusts the color defined by the parameter Color by changing the saturation and the intensity. The parameters DeltaSat and DeltaInt specify the adjustment of the saturation and the intensity, repectively. The delta values can assume values between -1.0 and +1.0. If the adjustments result in values outside the valid range the resulting saturation and intensity values are automatically restricted to the valid interval of [0..1].



Last Update: 2023-Feb-06