Home
last modified time | relevance | path

Searched refs:lightness (Results 1 – 1 of 1) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/
DColor.cpp99 RGBA32 makeRGBAFromHSLA(double hue, double saturation, double lightness, double alpha) in makeRGBAFromHSLA() argument
104 int greyValue = static_cast<int>(lightness * scaleFactor); in makeRGBAFromHSLA()
108 …double temp2 = lightness < 0.5 ? lightness * (1.0 + saturation) : lightness + saturation - lightne… in makeRGBAFromHSLA()
109 double temp1 = 2.0 * lightness - temp2; in makeRGBAFromHSLA()
361 void Color::getHSL(double& hue, double& saturation, double& lightness) const in getHSL()
387 lightness = 0.5 * (max + min); in getHSL()
390 else if (lightness <= 0.5) in getHSL()