rgb2mnsl: Converts an sRGB colour to Munsell

Description Usage Arguments See Also Examples

Description

Finds the closest Munsell colour (in LUV space) to the specified sRGB colour

Usage

1
rgb2mnsl(R, G = NULL, B = NULL)

Arguments

R

a numeric vector of red values or a 3 column matrix with the proportions R, G, B in the columns.

G

numeric vector of green values

B

numeric vector of blue values

See Also

plot_closest

Examples

1
2
3
rgb2mnsl(0.1, 0.1, 0.3)
rgb2mnsl(matrix(c(.1, .2, .4, .5, .6, .8),  ncol = 3))
plot_closest(matrix(c(.1, .2, .4, .5, .6, .8),  ncol = 3))

Example output

[1] "7.5PB 1/8"
[1] "2.5PB 4/8" "5PB 5/12" 

munsell documentation built on May 2, 2019, 5:57 a.m.