Learn R Programming

xaringanthemer (version 0.2.0)

lighten_darken_color: Generate lighter or darker version of a color

Description

Produces a linear blend of the color with white or black.

Usage

lighten_color(color_hex, strength = 0.7)

darken_color(color_hex, strength = 0.8)

Arguments

color_hex

A character string representing a hex color

strength

The "strength" of the blend with white or black, 0 low to 1 high.