public static ColorRGBA parseColor(Attributes attribs) throws SAXException {
        float r = parseFloat(attribs.getValue("r"));
        float g = parseFloat(attribs.getValue("g"));
        float b = parseFloat(attribs.getValue("b"));
        return new ColorRGBA(r, g, b, 1f);
    }
Parses an integer from a string, if the string is null returns
def.

@param i The string to parse
@param def The default value if the string is null
@return the parsed value or def
@throws SAXException in case of a syntax error
jme3-core/src/main/java/com/jme3/util/xml/SAXUtil.java