Description Usage Arguments Value Examples
View source: R/single-colorscale.R
Get n lightest colors from a single one
1 | get_light_cols(color, n = 6, lightness = 0.8, rotate = 67, saturation = 0.2)
|
color |
Hexadecimal string or a name for color. |
n |
Number of desired colors. |
lightness |
Percentage of lightness ( |
rotate |
Rotate coefficient in HSL space ( |
saturation |
Saturation percentage in HSL space ( |
a vector of n
colors.
1 2 3 4 | get_light_cols("#1D9A6C")
# display in viewer
view_cols(get_light_cols(color = "#1D9A6C"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.