Home
last modified time | relevance | path

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

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBlendComposite.java337 private static float hue2RGB(float v1, float v2, float vH) { in hue2RGB() argument
338 if (vH < 0.0f) { in hue2RGB()
339 vH += 1.0f; in hue2RGB()
341 if (vH > 1.0f) { in hue2RGB()
342 vH -= 1.0f; in hue2RGB()
344 if ((6.0f * vH) < 1.0f) { in hue2RGB()
345 return (v1 + (v2 - v1) * 6.0f * vH); in hue2RGB()
347 if ((2.0f * vH) < 1.0f) { in hue2RGB()
350 if ((3.0f * vH) < 2.0f) { in hue2RGB()
351 return (v1 + (v2 - v1) * ((2.0f / 3.0f) - vH) * 6.0f); in hue2RGB()