Color
Fields
- r:u8
- u8
- g:u8
- u8
- b:u8
- u8
- a:u8
- u8
Types
Functions
- brightness
Returns brightness of the color as a value between 0 and 1
- lighten
Lighten color by converting to HSLuv, lightening, and back.
- opacity
Multiply the current opacity with
mult, usually between 0 and 1- lerp
Linear interpolocation of colors component wise
- average
Average two colors component-wise
- toHexString
Returns a hex color string in the format "#rrggbb"
- fromHex
Converts hex color string to
Color- tryFromHex
Converts hex color string to
Color