complement: Find the complement of a munsell colour

View source: R/alter.r

complementR Documentation

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, ...)

Arguments

col

character vector of Munsell colours

...

deprecated

Value

character vector of Munsell colours

Examples

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

munsell documentation built on May 29, 2024, 7:29 a.m.