hex_extract | R Documentation |
Compute the average hex color of an image file
hex_extract(image)
image |
A cimg object which is an image file previously imported to the R session into R with |
Use this function to quickly extract the average color of an image for display on screens. Helpful for visualization purposes and making realistic drawings in vector graphics software such as Adobe Illustrator.
A character vector of length 1, containing average hexidecimal color of all pixels in the image
## Not run:
"image_file_1" %>%
imager::load.image() %>%
hex_extract()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.