Darken colors

darken(color, factor = 1.4)

Arguments

color

Character containing the name or hex value of a color.

factor

Numeric representing a factor by which darken the specified color.

Value

Darkens the provided color by the provided factor.

Examples

darken("blue", factor = 1.4)
#> [1] "#0000B6"