Skip to contents

Rest API that returns a bunch of color names for a given color-value.

Usage

get_color_colorpizza(
  hex,
  list = NULL,
  noduplicates = FALSE,
  return_name_only = TRUE
)

Arguments

hex

character. Hex color code

list

character. An available Color Name List.

noduplicates

boolean. if TRUE remove duplicates

return_name_only

boolean. if TRUE returns color name only

Value

A character string.

Examples

if (FALSE) {
get_color_colorpizza(
  hex = c("#3D290C","#1c2f11","#2e3f24"),
  list = "wikipedia",
  noduplicates = TRUE)
}