ijlyttle / splattr

'Htmlwidget' to display color palettes
https://ijlyttle.github.io/splattr
Other
1 stars 0 forks source link

harmonize API for colors #17

Open ijlyttle opened 4 years ago

ijlyttle commented 4 years ago

We have widgets that are meant for discrete palettes (swatch(), hcl_table()), and widgets that are meant for continuous palettes (ramp(), curtain()).

To all of these functions

These are for the arguments to each of the functions:

colors - vector of colors; input to all functions. n_color_interp - number of colors to interpolate; used for continuous widgets.