Learn R Programming

aqp (version 1.27)

parseMunsell: Parse Munsell Color Notation

Description

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.

Usage

parseMunsell(munsellColor, convertColors = TRUE, ...)

Arguments

munsellColor

character vector of Munsell colors (e.g. c('10YR 3/4', '5YR 4/6'))

convertColors

logical, convert colors to sRGB hex notation, sRGB coordinates, CIELAB coordinates

...

additional arguments to munsell2rgb

Value

a data.frame object

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab