Learn R Programming

munsell (version 0.5.1)

lighter: Make a munsell colour lighter

Description

Increases the value of the Munsell colour.

Usage

lighter(col, steps = 1)

Value

character vector of Munsell colours

Arguments

col

character vector of Munsell colours

steps

number of steps to take in increasing value

Examples

Run this code
lighter("5PB 2/4")
cols <- c("5PB 2/4", "5Y 6/8")
p <- plot_mnsl(c(cols, lighter(cols), lighter(cols, 2)))
p + ggplot2::facet_wrap(~ names, ncol = 2)
# lighter and darker are usually reversible
lighter(darker("5PB 2/4"))
# unless you try to pass though white or black
lighter(darker("5PB 1/4"))

Run the code above in your browser using DataLab