Learn R Programming

munsell (version 0.5.1)

complement: Find the complement of a munsell colour

Description

Finds the munsell colour with the same chroma and value but on the opposite side of the hue circle. The complement is not defined for greys (hue == "N"), and the function returns the grey untransformed.

Usage

complement(col, ...)

Value

character vector of Munsell colours

Arguments

col

character vector of Munsell colours

...

deprecated

Examples

Run this code
complement("5PB 2/4")
cols <- c("5PB 2/4", "5Y 7/8")
plot_mnsl(c(cols, complement(cols)))

Run the code above in your browser using DataLab