ColorExtension extension

on

Methods

toComplementary() Color
toHex({bool hashSing = true, bool alphaValue = false}) String
hashSing:
toHSL() HSLColor
toHSV() HSVColor
withRelativeOpacity(double opacity) Color
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
String is in the format "RRGGBB" or "AARRGGBB" with an optional hash sing "#".