ColorExtension extension

on

Methods

toComplementary() Color

Available on Color, provided by the ColorExtension extension

toHex({bool hashSing = true, bool alphaValue = false}) String

Available on Color, provided by the ColorExtension extension

hashSing:
toHSL() HSLColor

Available on Color, provided by the ColorExtension extension

toHSV() HSVColor

Available on Color, provided by the ColorExtension extension

withRelativeOpacity(double opacity) Color

Available on Color, provided by the ColorExtension extension

Returns a new color that matches this color with the alpha channel replaced with the given opacity (which ranges from 0.0 to 1.0).

Static Methods

fromHex(String hex) Color

Available on Color, provided by the ColorExtension extension

String is in the format "RRGGBB" or "AARRGGBB" with an optional hash sing "#".