ColorsUtils extension
- on
Methods
-
darker(
{double by = .1}) → Color -
Available on Color, provided by the ColorsUtils extension
Takes inby
and returns a new color with brightness decreased withby
. Value ofby
ranges from 0 to 1 -
lighter(
{double by = .1}) → Color -
Available on Color, provided by the ColorsUtils extension
Takes inby
and returns a new color with brightness increased withby
. Value ofby
ranges from 0 to 1