Home
last modified time | relevance | path

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

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