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