/src/main/java/org/htmlunit/util/StringUtils.java
final float q = l < 0.5f ? l * ( 1 < s) : l + s - l * s;
final float q = l < 0.5f ? l * ( 1 + s ) : l + s - l * s;
return hslToRgb(tmpHue, tmpSaturation, tmpLightness); } private static Color hslToRgb(final float h, final float s, final float l) { if (s == 0f) { return new Color(to255(l), to255(l), to255(l)); } <extra_id_0> final float p = 2 * l - q; final float r = hueToRgb(p, q, h + 1f / 3f); final float g = hueToRgb(p, q, h); final float b = hueToRgb(p, q, h - 1f / 3f); return new Color(to255(r), to255(g), to255(b)); }