Skip to contents

Lighten colors by mixing them with white.

Usage

lighten(col, amount = 0.2)

Arguments

col

vector of valid R colors.

amount

numeric value between 0 and 1 specifying the amount of lightening. A value of 0 leaves the color unchanged, while 1 returns white.

Value

Character vector of hexadecimal colors.

Details

Colors are mixed linearly with white in RGB space: $$ x_{new} = x + amount \cdot (255 - x) $$

See also

Other color.manipulation: addOpacity(), colToOpaque(), darken(), fade(), mixColors()