Docs (4.0.0)
class UIColor constructor

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.GREEN or ui.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 #112233 or #123, or rgb(a) format rgb(255, 255, 255), or a theme color name, as defined in UITheme.colors.

Related