public float[] getColorArray() {
        return new float[]{r, g, b, a};
    }
<code>getColorArray</code> retrieves the color values of this
<code>ColorRGBA</code> as a four element <code>float</code> array in the
order: r,g,b,a.

@return The <code>float</code> array that contains the color components.
jme3-core/src/main/java/com/jme3/math/ColorRGBA.java