Color Preset
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
alpha Mode
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.