Q3ColorRGB_Clamp
You can use theQ3ColorRGB_Clampfunction to clamp a color.
TQ3ColorRGB *Q3ColorRGB_Clamp ( const TQ3ColorRGB *color, TQ3ColorRGB *result);
color- An RGB color structure.
result- On exit, a pointer to an RGB color structure for the color that is the clamped version of the specified color.
DESCRIPTION
TheQ3ColorRGB_Clampfunction returns, as its function result and in theresultparameter, a pointer to an RGB color structure that clamps each component of the color specified by thecolorparameter. A clamped component lies between 0.0 and 1.0, inclusive.