Creates a color from a 0xAARRGGBB integer.
0xAARRGGBB
Parses a hex color string. Accepts #RGB, #RRGGBB, #AARRGGBB, or the same forms without the leading #. Useful when the color comes from a design tool ("paste this hex into the code").
#RGB
#RRGGBB
#AARRGGBB
#
Creates a color from a 0xRRGGBB integer with full opacity.
0xRRGGBB