ColorExtenions extension

A set of extensions for processing colors.

on

Properties

variants ColorVariants

Available on Color, provided by the ColorExtenions extension

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

Methods

darken([double amount = 0.06]) Color

Available on Color, provided by the ColorExtenions extension

Darken the color by removing the given amount to lightness.
findDark() Color

Available on Color, provided by the ColorExtenions extension

Finds a darker variant of the color.
findInvert() Color

Available on Color, provided by the ColorExtenions extension

Finds an invert color which results a black or white color regarding the color luminance.
findLight() Color

Available on Color, provided by the ColorExtenions extension

Finds a lighter variant of the color.
lighten([double amount = 0.06]) Color

Available on Color, provided by the ColorExtenions extension

Lighten the color by adding the given amount to lightness.
subtle([double amount = 0.06, double darkenLimit = 0.2]) Color

Available on Color, provided by the ColorExtenions extension

Find a subtle variant of a color (for example, for displaying hover states).