pth_to_jzazbz100: Convert/coerce to JzAzBz-100 matrix

View source: R/jzazbz100.R

pth_to_jzazbz100R Documentation

Convert/coerce to JzAzBz-100 matrix

Description

The idea for the scaling came from https://github.com/nschloe/colorio/issues/41#issuecomment-519983981.

Usage

pth_to_jzazbz100(color)

pth_new_jzazbz100(mat)

Arguments

color

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

mat

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

Value

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

Examples

  pth_to_jzazbz100("#663399")
  pth_new_jzazbz100(matrix(c(36.3, 15,3, -42.6), ncol = 3))

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