parseMunsell | R Documentation |
Split Munsell color notation into "hue", "value", and "chroma", with optional conversion to sRGB hex notation, sRGB coordinates, and CIELAB coordinates. Conversion is performed by munsell2rgb
.
parseMunsell(munsellColor, convertColors = TRUE, delim = NA, ...)
munsellColor |
character vector of Munsell colors (e.g. |
convertColors |
logical, convert colors to sRGB hex notation, sRGB coordinates, CIELAB coordinates |
delim |
optional, specify the type of delimiter used between value and chroma parts of the Munsell code. By default ":", ",:, "'", and "/" are supported. |
... |
additional arguments to |
a data.frame
object
P. Roudier and D.E. Beaudette
# just sRGB
parseMunsell("10YR 3/5", return_triplets = TRUE)
# sRGB + CIELAB (D65 illuminant)
parseMunsell("10YR 3/5", return_triplets = TRUE, returnLAB = TRUE)
# CIELAB only
parseMunsell("10YR 3/5", return_triplets = FALSE, returnLAB = TRUE)
# neutral hue
# note chroma encoded as '0'
parseMunsell('N 3/', convertColors = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.