Home | History | Annotate | Download | only in graphics

Lines Matching refs:hue

99 RGBA32 makeRGBAFromHSLA(double hue, double saturation, double lightness, double alpha)
111 return makeRGBA(static_cast<int>(calcHue(temp1, temp2, hue + 1.0 / 3.0) * scaleFactor),
112 static_cast<int>(calcHue(temp1, temp2, hue) * scaleFactor),
113 static_cast<int>(calcHue(temp1, temp2, hue - 1.0 / 3.0) * scaleFactor),
361 void Color::getHSL(double& hue, double& saturation, double& lightness) const
373 hue = 0.0;
375 hue = (60.0 * ((g - b) / (max - min))) + 360.0;
377 hue = (60.0 * ((b - r) / (max - min))) + 120.0;
379 hue = (60.0 * ((r - g) / (max - min))) + 240.0;
381 if (hue >= 360.0)
382 hue -= 360.0;
384 // makeRGBAFromHSLA assumes that hue is in [0...1).
385 hue /= 360.0;