Searched refs:hueVal (Results 1 - 1 of 1) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DColor.cpp79 static double calcHue(double temp1, double temp2, double hueVal) argument
81 if (hueVal < 0.0)
82 hueVal++;
83 else if (hueVal > 1.0)
84 hueVal--;
85 if (hueVal * 6.0 < 1.0)
86 return temp1 + (temp2 - temp1) * hueVal * 6.0;
87 if (hueVal * 2.0 < 1.0)
89 if (hueVal * 3.0 < 2.0)
90 return temp1 + (temp2 - temp1) * (2.0 / 3.0 - hueVal) * 6.
[all...]

Completed in 118 milliseconds