public static final Color mix(final Color a, final Color b, final float f) {
        return new Color((int) ShaderUtils.clamp(ShaderUtils.mix(a.getRed(), b.getRed(), f), 0, 255), (int) ShaderUtils.clamp(
                ShaderUtils.mix(a.getGreen(), b.getGreen(), f), 0, 255), (int) ShaderUtils.clamp(
                ShaderUtils.mix(a.getBlue(), b.getBlue(), f), 0, 255));
    }
A private constructor to inhibit instantiation of this class.
jme3-terrain/src/main/java/com/jme3/terrain/noise/ShaderUtils.java