Hex.ToRGBAColor
Static Method in Hex
Declaration
public static Color ToRGBAColor(int hex)
Description
Creates a color from a hexadecimal integer in the RGBA format (RRGGBBAA), e.g., 0xffff0080.
Parameters
hex | The hexadecimal integer to convert. |
Returns
Color | The color formed from the hexadecimal integer. |
Overload
Declaration
public static Color ToRGBAColor(string hex)
Description
Creates a color from a hexadecimal string in the ARGB format (RRGGBBAA), e.g., "#ffff0080".
Parameters
hex | The hexadecimal string to convert. |
Returns
Color | The color formed from the hexadecimal string. |