palette_reduce: Reduce palette by removing colours with low saturation, or low or high luminance
Description
Reduce palette by removing colours with low saturation, or low or high luminance
Usage
palette_reduce(pal, sat.thresh = NULL, light.thresh = NULL, dark.thresh = NULL)
Arguments
pal
A palette as a character vector containing hexidecimal coded colours
sat.thresh
Minimum saturation of colours in resulting palette (between 0 and 1)
light.thresh
Maximum luminosity of colours in resulting palette (between 0 and 1)
dark.thresh
Minimum luminosity of colours in resulting palette (between 0 and 1)