ColorExtenions extension

A set of extensions for processing colors.

on

Properties

variants ColorVariants
Gets a set of color variants for the color.
no setter

Methods

darken([double amount = 0.06]) Color
Darken the color by removing the given amount to lightness.
findDark() Color
Finds a darker variant of the color.
findInvert() Color
Finds an invert color which results a black or white color regarding the color luminance.
findLight() Color
Finds a lighter variant of the color.
lighten([double amount = 0.06]) Color
Lighten the color by adding the given amount to lightness.
subtle([double amount = 0.06, double darkenLimit = 0.2]) Color
Find a subtle variant of a color (for example, for displaying hover states).