Description Usage Arguments Value
View source: R/color_palette.R
Generate a color palette from an image.
1 2 | color_palette(file, length = 10, exclude = c("#FFFFFF", "#000000"),
normalize = TRUE)
|
file |
The path or url to an image file (urls should begin with http(s):// or ftp(s)://). |
length |
The number of colors to return. |
exclude |
Colors to exclude from palette. Excludes white and black by default. |
normalize |
Whether or not to apply |
A character vector containing a color palette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.