lab2rgb | R Documentation |
Lab colourspace to RGB conversion. Calculated with Observer. = 2°, Illuminant = D65.
lab2rgb(lab, ref_X = 95.047, ref_Y = 100, ref_Z = 108.883)
lab |
|
ref_X, ref_Y, ref_Z |
Reference values for Observer= 2°, Illuminant= D65 |
The formulas used to convert from Lab to XYZ and XYZ to RGB are from http://www.easyrgb.com/en/math.php and the reference values are from http://www.brucelindbloom.com/index.html?ColorCheckerCalcHelp.html
vector of red, green and blue values
Other color:
col2lab()
,
color_conv()
lab <- c(100, 0, 0) lab2rgb(lab) lab <- col2lab("red") lab2rgb(lab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.