Lines Matching refs:lightness
452 % ConvertHSLToRGB() transforms a (hue, saturation, lightness) to a (red,
458 % const double lightness,double *red,double *green,double *blue)
462 % o hue, saturation, lightness: A double value representing a
469 const double lightness,double *red,double *green,double *blue)
484 if (lightness <= 0.5)
485 c=2.0*lightness*saturation;
487 c=(2.0-2.0*lightness)*saturation;
488 min=lightness-0.5*c;
1098 % lightness) triple.
1103 % const double blue,double *hue,double *saturation,double *lightness)
1110 % o hue, saturation, lightness: A pointer to a double value representing a
1115 const double blue,double *hue,double *saturation,double *lightness)
1127 assert(lightness != (double *) NULL);
1133 *lightness=(max+min)/2.0;
1152 if (*lightness <= 0.5)
1153 *saturation=c/(2.0*(*lightness));
1155 *saturation=c/(2.0-2.0*(*lightness));