Provides server logic for the colorPicker2 module.
colorPicker(
input,
output,
session,
num.colors = 256,
distribution = "all",
winsorize = NULL,
selected = NULL
)
Shiny's input object
Shiny's output object
Shiny's session object
Define length of colorpalette vector (Default = 256).
Decide which palettes are selectable. One or more of list("sequential", "diverging", "categorical"). Defaults to "all" (Supports reactive).
Numeric vector of two. Dynamically change lower and upper limit (supports reactive). Defaults to NULL.
Set the default selected palette.
Reactive containing list(palette = c(colors), name = palette_name, transparency = Integer, reverse = Boolean, winsorize = NULL or a two-component vector containing lower and upper limits).
A custom colorpalette's return will be NULL if there is something wrong with it.
equalize will be returned as FALSE if not selected.