Color class represents a color used in swatches in the editor UI. In addition to the CSS color value it allows for a custom label to present the color to the user.
Creates a Color object based on supplied value and optional custom label.
Optional
CSS-compatible color value.
Returns the label for the color. If custom label isn't set it returns the real color value.
Sets a custom label (name) for the color.
Generated using TypeDoc
Color class represents a color used in swatches in the editor UI. In addition to the CSS color value it allows for a custom label to present the color to the user.