Learn R Programming

qualpalr (version 1.0.0)

convert_colors: Convert colors between colorspaces

Description

Convert colors between colorspaces

Usage

convert_colors(colors, from, to)

Value

The colors converted to the new colorspace

Arguments

colors

A matrix of colors

from

The colorspace of the input colors, one of "rgb", "hsl", "din99d", "lab", "xyz"

to

The colorspace of the output colors, one of "rgb", "hsl", "lab", "xyz"