Takes an image and creates a palette
1 | get_pal_from_image(pic, k, method = "max", seed = sample(1:10000, 1))
|
pic |
Image |
k |
Number of colours |
method |
Method. Available options: max, kmeans |
seed |
Set seed for kmeans |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.