View source: R/utils_css_color.R
color_cycle | R Documentation |
Makes a cyclic color palette of a specified length using the specified transformation each cycle
color_cycle(colors, n, transform_fn = colorspace::lighten, ...)
colors |
|
n |
|
transform_fn |
|
... |
|
chr
vector of n
length
Other color:
color_distance()
,
color_luminance()
,
color_match()
,
color_rgb_table()
,
color_separate()
,
color_text_by_luminance()
,
colors2css()
,
css_col2vec()
,
luminance_filter()
,
rgb2hex()
color_cycle(c("rgba(18,180,211,1)", "rgba(2,120,170,1)", "rgba(0,57,73,1)"), n = 9, amount = .2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.