View source: R/thumbnail_color.R
thumbnail_color | R Documentation |
Find thumbnail color
thumbnail_color(path, hex = TRUE)
path |
string. Path to the thumbnail PNG |
hex |
logical. If 'TRUE' then the RGBA values are converted to hex |
Given a mono-colored thumbnail this function extracts the RGBA channels and returns a vector scaled from [0, 1] or a hex color code.
The color of the thumbnail in hex or rgba
path <- system.file("extdata", "test_thumbnail.png", package = "Rigma") thumbnail_color(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.