parse Hex
Utility function for creating an RGB color from a hex string.
Return
The parsed RGB color.
Parameters
hex
The hex string to parse.
Utility function for creating an RGB color from an Int (e.g., 0xFF0000).
Return
The parsed RGB color.
Parameters
color
The Int to parse.
has Alpha
Whether the Int has an alpha channel.