FindUniformSequence {colorpatch} | R Documentation |
Finds a uniform color sequence within a non-uniform palette by subsampling that palette
FindUniformSequence(P, n.out, reverse = FALSE, delta = NULL,
col.dist.fun = DistColorFun("LAB"))
P |
input color palette (must be a class derived from colorspace::color) |
n.out |
number of output colors (must be less than length(P)) |
reverse |
shall the searching be performed from the end of the palette to the beginning |
delta |
the perceptual difference to be achieved between two adjecent colors |
col.dist.fun |
function mapping two colors to a numeric distance |
a optimized palette (sub-set of P)