in_gamut: Checks if a Munsell colour is defined in RGB space

Description Usage Arguments Value Examples

Description

Not all possible correctly formatted Munsell colours result in a colour representable in RGB space. This function checks if the colour is representable.

Usage

1

Arguments

col

a character vector representing Munsell colours.

fix

passed on to fix_mnsl. Use fix = TRUE to fix "bad" colours

Value

a character vector containing the input colours. If any colours were outside the gamut they will be represented by NA.

Examples

1
in_gamut(c("5R 5/8","2.5R 9/28"))

Example output

[1] "5R 5/8" NA      
Warning message:
In in_gamut(c("5R 5/8", "2.5R 9/28")) :
  some specified colours are undefined. You could try fix = TRUE

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