lighten_color: Lighten a color

Description Usage Arguments Value Author(s) See Also Examples

View source: R/lighten_color.R

Description

Get a slightly brighter color

Usage

1
lighten_color(color, extent = 100, preset = c(black = "transparent"))

Arguments

color

a vector of color in any of the three available color types, such as a color name, #rrggbb, and an integer. refer to col2rgb in grDevices package.

extent

the extent of lightening of color, where max value is 255.

preset

previously selected conversion, which is given as a named vector. The default, c(black= "transparent"), converts black to transparent.

Value

a vector of lightened color in RGB format

Author(s)

Mun-Gwan Hong, mungwan@gmail.com

See Also

rgb

Examples

1
lighten_color(c("green4", 8, 1, "black", "#6464FF", "blue"))

Rundmus/Useful2me-R_package documentation built on Nov. 13, 2020, 4:16 p.m.