public float[] toArray(float[] floats) {
        if (floats == null) {
            floats = new float[4];
        }
        floats[0] = r;
        floats[1] = g;
        floats[2] = b;
        floats[3] = a;
        return floats;
    }
Saves this <code>ColorRGBA</code> into the given <code>float</code> array.

@param floats The <code>float</code> array to take this <code>ColorRGBA</code>.
If null, a new <code>float[4]</code> is created.
@return The array, with r,g,b,a float values in that order.
jme3-core/src/main/java/com/jme3/math/ColorRGBA.java