{colourpicker} package (original) (raw)

Simple

Selected colour:

colourInput("col", NULL, "blue")

Limited colour palette

Selected colour:

colourInput(
"col", NULL, "yellow",
palette = "limited")

Allow Transparent

Selected colour:

colourInput(
"col", NULL, "#00FF0080",
allowTransparent = TRUE,
closeOnClick = TRUE)

Return colour name

Selected colour:

colourInput(
"col", NULL, "green",
returnName = TRUE,
palette = "limited",
closeOnClick = TRUE)

Background only

Selected colour:

colourInput(
"col", NULL, "red",
showColour = "background")

Custom colour list

Selected colour:

colourInput(
"col", NULL,
palette = "limited",
allowedCols = c(
"white", "black", "red",
"#DDD", "blue",
"#0000FFA0", "#0000FF30",
"rgb(255, 255, 0)"))

Update input control

Selected colour:


New colour: (colour name or HEX value)

Use output in a plot

Points colour

Points outline