SpectrumUtils extension
Spectrum-branded Color extension methods and getters, namely for the generation of complementary colors.
- on
Properties
- asMaterialAccent → MaterialAccentColor
-
Available on Color, provided by the SpectrumUtils extension
Returnsthiscolor as a MaterialAccentColor viamaterialAccentFromusing SwatchMode.shade and afactorof200.no setter - asMaterialColor → MaterialColor
-
Available on Color, provided by the SpectrumUtils extension
Returnsthiscolor as a MaterialColor viamaterialPrimaryFromusing SwatchMode.shade and afactorof200.no setter -
complementPair
→ List<
Color> -
Available on Color, provided by the SpectrumUtils extension
Returns a two-entryList<Color>containingthisand the inverse ofthis, resembling:no setter -
complementTriad
→ List<
Color> -
Available on Color, provided by the SpectrumUtils extension
Returns a three-entryList<Color>containingthisand two versions ofthiswith its components shifted, resembling:no setter
Methods
-
blend(
Color other, [double blend = 0.5]) → Color -
Available on Color, provided by the SpectrumUtils extension
A shortcut for Color.lerp. -
complementary(
int count, [double? distance]) → List< Color> -
Available on Color, provided by the SpectrumUtils extension
The number ofColors returned in thisListwill matchcount, and the original colorthiswill be first amongst them.