pth_to_cielab: Convert/coerce to CIELAB matrix

View source: R/cielab.R

pth_to_cielabR Documentation

Convert/coerce to CIELAB matrix

Description

Convert/coerce to CIELAB matrix

Usage

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

pth_new_cielab(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_cielab and pth_mat, with three columns, one row for each color.

Examples

  pth_to_cielab("#663399")
  pth_new_cielab(matrix(c(32.9, 42.9, -47.1), ncol = 3))

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