public int toInteger() {
        return 0x00000000 | (int) (this.rgba[3] * 256) << 24 | (int) (this.rgba[0] * 256) << 16 | (int) (this.rgba[1] * 256) << 8
                | (int) (this.rgba[2] * 256);
    }
Helper class for working with colors and gradients

@author Anthyon
jme3-terrain/src/main/java/com/jme3/terrain/noise/Color.java