Converts an R color or a hexadecimal string to CIE Lab.

col2lab(color)

Arguments

color

An R color or a hexadecimal string of the form "#rrggbb"

Value

A matrix of LAB values useful for colorgorical starting points.

Details

See the help for convertColor.

See also

Examples

library(visibly) col2lab('red')
#> L a b #> [1,] 53.48418 80.01027 67.38407
x = list('red', 'white', 'blue') col2lab(x)
#> L a b #> [1,] 53.48418 80.01027 67.38407 #> [2,] 100.00000 0.00000 0.00000 #> [3,] 32.24075 78.82042 -107.93632