/src/main/java/org/htmlunit/util/StringUtils.java
} return hslToRgb( tmpHue, tmpSaturation, tmpLightness) ;
return hslToRgb ( tmpHue, tmpSaturation, tmpLightness ) ; }
if (!tmpMatcher.find()) { return null; } final float tmpHue = Float.parseFloat(tmpMatcher.group(1)) / 360f; final float tmpSaturation = Float.parseFloat(tmpMatcher.group(4)) / 100f; final float tmpLightness = Float.parseFloat(tmpMatcher.group(7)) / 100f; <extra_id_0> 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)); } final float q = l < 0.5f ? l * (1 + s) : l + s - l * s; final float p = 2 * l - q;