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 color
no 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 of this color
no 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 from this shaded to shade and mixed with white as base color. This assumes this color 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 with color color and ends with this.
tweenTo(Color color) ColorTween

Available on Color, provided by the ColorFS extension

allows to create a tween that start with this color and ends with color.