Class Colors
java.lang.Object
com.codename1.art.Colors
Parses and formats CSS colors.
-
Method Summary
-
Method Details
-
parse
Parses
#rgb,#rgba,#rrggbb,#rrggbbaa,rgb(),rgba(),hsl(),hsla(), a named color ortransparent.Parameters
s: the color textdef: returned whensis null or not a color
Returns
the color as
0xAARRGGBB -
toHex
Formats a color as
#rrggbb, ignoring alpha.Parameters
argb: the color
-