create_palette: Create palette

Description Usage Arguments Value

View source: R/create_palette.R

Description

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.

Usage

1
create_palette(video_id, n = 6, maxiter = 45, monitor = plot, parallel = F)

Arguments

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)

Value

A color palette, in hex strings


tsostarics/ftpals documentation built on Dec. 23, 2021, 12:59 p.m.