Learn R Programming

munsell (version 0.5.0)

desaturate: Make a munsell colour less saturated

Description

Decreases the chroma of the Munsell colour by one step steps (multiples of 2).

Usage

desaturate(col, steps = 1)

Value

character vector of Munsell colours

Arguments

col

character vector of Munsell colours

steps

number of steps to take in decreasing chroma

Examples

Run this code
desaturate("5PB 2/4")
cols <- c("5PB 2/6", "5Y 7/8")
p <- plot_mnsl(c(cols, desaturate(cols), desaturate(cols, 2)))
p + ggplot2::facet_wrap(~ names, ncol = 2)

Run the code above in your browser using DataLab