Skip to main content

ApiColor

Class representing a base class for the color types.

Methods​

The following table lists the available methods.

MethodReturnsDescription
FromJSONApiColor | nullConverts the JSON object into the ApiColor object.
GetClassType"color"Returns a type of the ApiColor class.
GetHexstringGets the HEX string representation of the color.
GetRGBnumberReturns a color value in RGB format.
GetRGBAObjectGets the RGBA components of the color.
GetThemeNameSchemeColorId | nullGets the theme color name if the color is a theme color.
IsThemeColorbooleanReturns true if the color is a theme color.
ToJSONstringConverts the ApiColor object into the JSON object.