search for: chromaticadaptation

Displaying 1 result from an estimated 1 matches for "chromaticadaptation".

2018 Sep 14
1
Possible bug with chromatic adaptation in grDevices::convertColor
...t;)??? rgb(clr.out)??? ## [1] "#CCCCCC" "#EEEEEE" ??? convertColor(clr, "sRGB", "sRGB", "D65", "D50")??? ## Error in match.arg(from, nWhite) :??? ##?? 'arg' must be NULL or a character vector This appears to be because `grDevices:::chromaticAdaptation` expects the whitepoints to be provided in the character format (e.g. "D65"), but they are already converted by `convertColor` into the tristimulus values.? After applying the patch at the end of this e-mail, we get: ??? clr.out <- convertColor(clr, "sRGB", "sRGB",...