MakePalette | R Documentation |
Creates a color palette from an image, using the KMeans algorithm
MakePalette(photo, n = 4)
photo |
Image location path. It can also be a URL address. |
n |
Number of elements to be generated in the color palette. The default value is 4. |
A palette of colors
MakePalette(system.file("extdata", "picture02.jpg", package="MakeYourPalette")) MakePalette(system.file("extdata", "picture04.png", package="MakeYourPalette")) MakePalette(system.file("extdata", "picture06.png", package="MakeYourPalette"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.