Closed dylanbeaudette closed 3 years ago
farver is using the native domain of the different colourspaces whereas convertColor normalises it between 0 and 1
convert_colour(rbind(c(0.1828, 0.1844, 0.3806)) * 100, from = 'xyz', to = 'rgb', white_from = 'D65', white_to = 'D65') / 255
will give the same result
It is not all colourspaces that have any defined bounds, so it is not possible to rescale them between 0 and 1. This is why farver leaves the colours alone
Thanks. Worth a mention in the manual page? I don't see any such documentation for grDevices::convertColor
.
Any ideas?