ColorPreset

class ColorPreset(val color: Int, alphaMode: Boolean, val tooltip: Text = toHexString(color, alphaMode).lit())

A pre-defined color instance.

Author

fzzyhmstrs

Since

0.7.2

Parameters

color

ARGB integer representation of the preset. If alphamode is on, the A portion needs to be included or the color will be completely transparent

alphaMode

whether this presets parent color cares about alpha or not

tooltip

, optional. The text to display when hovering over this color option. Default impl is a hex code representation of the color value.

Constructors

Link copied to clipboard
constructor(color: Int, alphaMode: Boolean, tooltip: Text = toHexString(color, alphaMode).lit())

Properties

Link copied to clipboard
val color: Int
Link copied to clipboard
val tooltip: Text