public static int toRGB ( String color ) { validateHexSingle ( color ) ; if ( color . length ( ) == 1 ) { color += color ; } return Integer . parseInt ( color , 16 ) ; }
Convert the hex single color to a RBG integer