public void clamp() {
        r = FastMath.clamp(r, 0f, 1f);
        g = FastMath.clamp(g, 0f, 1f);
        b = FastMath.clamp(b, 0f, 1f);
        a = FastMath.clamp(a, 0f, 1f);
    }
Saturate that color ensuring all channels have a value between 0 and 1
jme3-core/src/main/java/com/jme3/math/ColorRGBA.java