col2lab: Convert color to lab

Description Usage Arguments Details Value See Also Examples

View source: R/col2lab.R

Description

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

Usage

1
col2lab(color)

Arguments

color

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

Details

See the help for convertColor.

Value

A matrix of LAB values useful for colorgorical starting points.

See Also

colorgorical col2rgb convertColor

Examples

1
2
3
4
library(visibly)
col2lab('red')
x = list('red', 'white', 'blue')
col2lab(x)

m-clark/visibly documentation built on Oct. 28, 2020, 5:33 p.m.