Color function ( String arg0 ) { arg0 = arg0 . trim ( ) . toLowerCase ( ) ; Color loc0 = COLOR_MAP . get ( arg0 ) ; if ( loc0 != null ) return loc0 ; loc0 = convertStringToColor ( arg0 ) ; return loc0 ; }
returns a color object if the parameter can be evaluated as acolor . this includes a text search against a list of known colors case-insensitive ; see #color_map and conversion of the string into a color using color #decode string . invalid strings cause color_map . get `` black '' to be returned . calls #convertstringtocolor string if the parameter is not arecognized color name . concode_field_sep AtomicInteger nextTokenId concode_elem_sep Random RAND concode_elem_sep RandomSuffixFactory randomSuffixFactory concode_elem_sep Map<String,Color> COLOR_MAP concode_elem_sep Pattern NAME_PATTERN concode_elem_sep Map<String,Color> COLOR_MAP_HTML concode_field_sep String nextTokenId concode_elem_sep int getRandomNumber concode_elem_sep int getRandomNumber concode_elem_sep boolean percentageCheckAbove concode_elem_sep boolean isHtmlColor concode_elem_sep boolean isValidColor concode_elem_sep float getRandomRealNumber concode_elem_sep float getRandomRealNumber concode_elem_sep Color convertStringToColor concode_elem_sep boolean percentageCheckBelow concode_elem_sep boolean isDebugEnabled concode_elem_sep Set<String> getColorNames concode_elem_sep void uploadAsset concode_elem_sep void uploadTexture