Description Usage Arguments Value
First the average hue is calculated by averaging r, g and b components of the colors and converted to HSL. Then, this hue is combined with average s and l in order to avoid muddy colors. Finally, the combined HSV is converted to hex.
1 | average_color(color_names)
|
color_names |
Vector of color names (from [grDevices::colors()]). |
Average color in hex form.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.