Lighten: Lightens input colors by a set amount

Description Usage Arguments Value Author(s) Examples

View source: R/ColorAdjustments.R

Description

A wrapper for the lighten function of the colorspace package.

Usage

1
Lighten(colors, percent.change = 0.25, relative = TRUE)

Arguments

colors

the color(s) input. Can be a list of colors, for example, /codedittoColors().

percent.change

# between 0 and 1. the percentage to darken by. Defaults to 0.25 if not given.

relative

TRUE/FALSE. Whether the percentage should be a relative change versus an absolute one. Default = TRUE.

Value

Return a lighter version of the color in hexadecimal color form (="#RRGGBB" in base 16)

Author(s)

Daniel Bunis

Examples

1
2
3
Lighten("blue") #"blue" = "#0000FF"
#Output: "#4040FF"
Lighten(dittoColors()[1:8]) #Works for multiple color inputs as well.

dittoSeq documentation built on April 17, 2021, 6:01 p.m.