as_mat_luv: Convert to LUV matrix from HCL data frame

View source: R/as_mat_luv.R

as_mat_luvR Documentation

Convert to LUV matrix from HCL data frame

Description

It is thought to specify a colorpath using HCL coordinates; it seems reasonable to compile these coordinates using a data frame.

Usage

as_mat_luv(df_hcl, chroma_min = 0.01)

Arguments

df_hcl

data.frame with variables h, c, l.

chroma_min

numeric minimum value for chroma, helps preserve hue.

Value

matrix with columns, l, u, v and same number of rows as df_hcl

Examples

  as_mat_luv(df_hcl_blues)

ijlyttle/colorpath documentation built on Sept. 13, 2022, 7:44 p.m.