new UIColor
Creates a new UIColor instance.
constructor(color?: string)
Notes
- Use one of the static
ui.color()properties for theme colors when possible (e.g.ui.color.GREENorui.color.BACKGROUND), instead of creating UIColor instances for custom colors. - You can also use the
ui.color()function as an alias for this constructor.
Parameters
- color — The base color, in hex format
#112233or#123, or rgb(a) formatrgb(255, 255, 255), or a theme color name, as defined in UITheme.colors.
Related
- class UIColorAn object that represents a single color value.
