Skip to contents

make color more dark

Usage

darken(color, factor = 1.2)

Arguments

color

hex color code

factor

scalar for darken level

Value

darkened hex color code

Examples

darken("#FF0000")
#> [1] "#D40000"