Lines Matching refs:lightness
463 const double lightness,double *red,double *green,double *blue) in ConvertHSLToRGB() argument
478 if (lightness <= 0.5) in ConvertHSLToRGB()
479 c=2.0*lightness*saturation; in ConvertHSLToRGB()
481 c=(2.0-2.0*lightness)*saturation; in ConvertHSLToRGB()
482 min=lightness-0.5*c; in ConvertHSLToRGB()
1100 const double blue,double *hue,double *saturation,double *lightness) in ConvertRGBToHSL() argument
1112 assert(lightness != (double *) NULL); in ConvertRGBToHSL()
1118 *lightness=(max+min)/2.0; in ConvertRGBToHSL()
1137 if (*lightness <= 0.5) in ConvertRGBToHSL()
1138 *saturation=c/(2.0*(*lightness)); in ConvertRGBToHSL()
1140 *saturation=c/(2.0-2.0*(*lightness)); in ConvertRGBToHSL()