public ColorRGBA setAsSrgb(float r, float g, float b, float a) {
        this.r = (float) Math.pow(r, GAMMA);
        this.b = (float) Math.pow(b, GAMMA);
        this.g = (float) Math.pow(g, GAMMA);
        this.a = a;

        return this;
    }
Sets the rgba channels of this color in sRGB color space.
You probably want to use this method if the color is picked by the use
in a color picker from a GUI.

Note that the values will be gamma corrected to be stored in linear space
GAMMA value is 2.2

Note that no correction will be performed on the alpha channel as it
conventionally doesn't represent a color itself

@param r the red value in sRGB color space
@param g the green value in sRGB color space
@param b the blue value in sRGB color space
@param a the alpha value

@return this ColorRGBA with updated values.
jme3-core/src/main/java/com/jme3/math/ColorRGBA.java