Skip to contents

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

Examples

color_cycle(c("rgba(18,180,211,1)", "rgba(2,120,170,1)", "rgba(0,57,73,1)"), n = 9, amount = .2)
#> Error in loadNamespace(x): there is no package called ‘colorspace’