Creates a new Color instance from a hex value.
Creates a new Color instance from a hex value. It is flexible for:
- 1-digit (represents the value for red, green, and blue) - 2-digit (represents the value for red, green, and blue) - 3-digit (RGB) - 4-digit (RGBA) - 6-digit (RRGGBB) - 8-digit (RRGGBBAA)
A preceding hash is optional.
String representation of a hex String
Creates a new Color instance from a Long value 0xRRGGBBAA