Searched refs:hueVal (Results 1 – 1 of 1) sorted by relevance
81 static double calcHue(double temp1, double temp2, double hueVal) in calcHue() argument83 if (hueVal < 0.0) in calcHue()84 hueVal++; in calcHue()85 else if (hueVal > 1.0) in calcHue()86 hueVal--; in calcHue()87 if (hueVal * 6.0 < 1.0) in calcHue()88 return temp1 + (temp2 - temp1) * hueVal * 6.0; in calcHue()89 if (hueVal * 2.0 < 1.0) in calcHue()91 if (hueVal * 3.0 < 2.0) in calcHue()92 return temp1 + (temp2 - temp1) * (2.0 / 3.0 - hueVal) * 6.0; in calcHue()