palette_sampler: Palette Sampler

View source: R/FlowFieldBackgrounds.R

palette_samplerR Documentation

Palette Sampler

Description

Takes a color palette in the form of a list, selects a background color and separates it from the rest of the palette

Usage

palette_sampler(palette)

Arguments

palette

a list of colors; an example is shown below

Value

a list with the background color first and all other colors following

Examples

greyscale <- c(
"black" = "#000000",
"white" = "#ffffff",
"gray" = "#808080",
"britishgray" = "#797979",
"charcoal" = "#36454f"
)


Theo-Jongerius/FlowFieldBackgrounds documentation built on May 21, 2022, 2:29 a.m.