Description Usage Arguments Value
View source: R/create_palette.R
Create a palette from the thumbnail of the given video. Requires the GA package. Parallel processing possible but turned off by default. This actually works with any thumbnail, doesn't have to be from the first take.
1 | create_palette(video_id, n = 6, maxiter = 45, monitor = plot, parallel = F)
|
video_id |
youtube video ID |
n |
number of colors to create (default 6) |
maxiter |
Max number of iterations for the genetic algorithm |
monitor |
set to plot to view convergence in progress |
parallel |
number of cores to use for parallel processing (F by default) |
A color palette, in hex strings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.