Alpha component of the color in interval [0, 1]
Blue component of the color in interval [0, 255]
Green component of the color in interval [0, 255]
Indicator to differentiate color variables from color styles
Optional
linkedUnique identifier of the linked color variable, which is converted from a color variable
Optional
nameName of the color
Optional
originalOriginal name of the color
Red component of the color in interval [0, 255]
Optional
sourceUnique identifier of the color
Gets the formatted name of the color using the specified naming scheme
Optional
namingScheme: NamingSchemeThe naming scheme to use
Formatted color name
Returns the base hex string without the # prefix
Hex string without prefix
Converts the color to a hexadecimal string
Hexadecimal color string
Return the HSLA representation of the color
HSL object
Gets the HSLA values as a CSS string
CSS compatible hsla string
Gets the RGBA values as a CSS string
CSS compatible rgba (or rgb if alpha is below 1.0) string
Static
blendStatic
fromCreates a Color instance from a JSON string
JSON string representing a color
A new Color instance
A class that represents an RGBA color