ColorFS extension
Provides extensions for Color
- on
Properties
- blueValue → int
-
Available on Color, provided by the ColorFS extension
The blue channel of this color in an 8 bit value.no setter - brightness → Brightness
-
Available on Color, provided by the ColorFS extension
Returns the brightness of this colorno setter - greenValue → int
-
Available on Color, provided by the ColorFS extension
The green channel of this color in an 8 bit value.no setter - hexString → String
-
Available on Color, provided by the ColorFS extension
Returns hex string ofthiscolorno setter - isDark → bool
-
Available on Color, provided by the ColorFS extension
Returns true if this color is a dark color and has dark brightness.no setter - isLight → bool
-
Available on Color, provided by the ColorFS extension
Returns true if this color is a light color and has light brightness.no setter - redValue → int
-
Available on Color, provided by the ColorFS extension
The red channel of this color in an 8 bit value.no setter
Methods
-
shade(
int shade) → Color -
Available on Color, provided by the ColorFS extension
Returns Color fromthisshaded toshadeand mixed with white as base color. This assumesthiscolor to be a shade of 700. -
toMaterialColor(
) → MaterialColor -
Available on Color, provided by the ColorFS extension
converts a normal Color to material color with proper shades mixed with base color (white). -
tweenFrom(
Color color) → ColorTween -
Available on Color, provided by the ColorFS extension
allows to create a tween that start withcolorcolor and ends withthis. -
tweenTo(
Color color) → ColorTween -
Available on Color, provided by the ColorFS extension
allows to create a tween that start withthiscolor and ends withcolor.