pth_to_cieluv: Convert/coerce to CIELUV matrix

View source: R/cieluv.R

pth_to_cieluvR Documentation

Convert/coerce to CIELUV matrix

Description

Convert/coerce to CIELUV matrix

Usage

pth_to_cieluv(color, whitepoint = whitepoints_cie1931("D65"))

pth_new_cieluv(mat, whitepoint = whitepoints_cie1931("D65"))

Arguments

color

character or matrix with S3 class pth_mat, a representation of a color.

whitepoint

double array with one dimension, length three; describes the whitepoint reference for the color space.

mat

double matrix with three columns, one row for each color.

Value

double matrix with S3 classes pth_cieluv and pth_mat, with three columns, one row for each color.

Examples

  pth_to_cieluv("#663399")
  pth_new_cieluv(matrix(c(32.9, 13.0, -67.8), ncol = 3))

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