ColorFS extension
Provides extensions for Color
- on
Properties
- brightness → Brightness
-
Returns the brightness of this color
no setter
- hexString → String
-
Returns hex string of this color
no setter
- isDark → bool
-
Returns true if this color is a dark color and has dark brightness.
no setter
- isLight → bool
-
Returns true if this color is a light color and has light brightness.
no setter
Methods
-
shade(
int shade) → Color - Returns Color from this shaded to shade and mixed with white as base color. This assumes this color to be a shade of 700.
-
toMaterialColor(
) → MaterialColor - converts a normal Color to material color with proper shades mixed with base color (white).
-
tweenFrom(
Color color) → ColorTween -
allows to create a tween that start with
color
color and ends with this. -
tweenTo(
Color color) → ColorTween -
allows to create a tween that start with this color
and ends with
color
.