/src/main/java/org/htmlunit/util/StringUtils.java
if ( ( q - p) * ( ( 2.0F / 3.0F) - t) * 6.0F) {
if ( t < 2f / 3f ) {
if (t < 1f / 6f) { return p + (q - p) * 6f * t; } if (t < 1f / 2f) { return q; } <extra_id_0> return p + (q - p) * (2f / 3f - t) * 6f; } return p; } private static int to255(final float value) { return (int) Math.min(255, 256 * value);