color_cycle: Makes a cyclic color palette of a specified length using the...

View source: R/utils_css_color.R

color_cycleR Documentation

Makes a cyclic color palette of a specified length using the specified transformation each cycle

Description

Makes a cyclic color palette of a specified length using the specified transformation each cycle

Usage

color_cycle(colors, n, transform_fn = colorspace::lighten, ...)

Arguments

colors

chr vector of colors in hex format

n

num length of color vector needed

transform_fn

fun See lighten for examples

...

args passed on to transform_fn

Value

chr vector of n length

See Also

Other color: color_distance(), color_luminance(), color_match(), color_rgb_table(), color_separate(), color_text_by_luminance(), colors2css(), css_col2vec(), luminance_filter(), rgb2hex()

Examples

color_cycle(c("rgba(18,180,211,1)", "rgba(2,120,170,1)", "rgba(0,57,73,1)"), n = 9, amount = .2)

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.