chroma_avg: Simple averaging of colors

Description Usage Arguments Value Examples

View source: R/chroma-utils.R

Description

Simple averaging of colors

Usage

1
chroma_avg(colors, mode = c("rgb", "hsl", "lab", "lrgb", "lch"))

Arguments

colors

A vector of hexadecimal strings, minimum length 2.

mode

Color space used for interpolation.

Value

A hexadecimal string

Examples

1
2
3
4
## Not run: 
chroma_avg(colors = c("#ddd", "yellow", "red", "teal"))

## End(Not run)

dreamRs/colorscale documentation built on April 17, 2020, 8:38 a.m.