Skip to contents

go from a colour like "red" to a HCL matrix, values of hue, chroma, and luminance

Usage

col2hcl(colour)

Arguments

colour

a colour name from colours() or colors()

Value

A matrix of hue, chroma, and luminance

Examples

col2hcl("red")
#>            h       c        l
#> [1,] 12.1744 179.049 53.24079