desaturate_color | R Documentation |
Desaturate colors by reducing Saturation in HSV space
desaturate_color(color_vec, desat_frac = 0.5, sat_floor = 0.1)
color_vec |
a vector of hex or R colors |
deval_frac |
numeric (0 to 1) - the amount to subtract from Saturation in HSV |
val_floor |
numeric (0 to 1) - a minimum Saturation to retain for each color |
a character vector of desaturated hex colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.