public ColorRGBA getAsSrgb() {
        ColorRGBA srgb = new ColorRGBA();
        float invGamma = 1f / GAMMA;
        srgb.r = (float) Math.pow(r, invGamma);
        srgb.g = (float) Math.pow(g, invGamma);
        srgb.b = (float) Math.pow(b, invGamma);
        srgb.a = a;
        return srgb;
    }
Get the color in sRGB color space as a <code>ColorRGBA</code>.

Note that linear values stored in the ColorRGBA will be gamma corrected
and returned as a ColorRGBA.

The x attribute will be fed with the r channel in sRGB space.
The y attribute will be fed with the g channel in sRGB space.
The z attribute will be fed with the b channel in sRGB space.
The w attribute will be fed with the a channel.

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

@return the color in sRGB color space as a ColorRGBA.
jme3-core/src/main/java/com/jme3/math/ColorRGBA.java