Skip to contents

Color palettes are stored in a named list.

Usage

washi_pal

Format

An object of class list of length 11.

Value

List of available washi color palettes

See also

Other color palette functions: washi_pal_setup(), washi_pal_view()

Examples

# List names of available palettes
names(washi_pal)
#>  [1] "standard"        "color_blind"     "accent"          "green_highlight"
#>  [5] "blue_highlight"  "red_highlight"   "gold_highlight"  "green_gradient" 
#>  [9] "blue_gradient"   "red_gradient"    "gold_gradient"  

# Get hex codes from a palette using dollar `$name` or
# double bracket
# `[["name"]]` operators for extracting list elements
washi_pal$standard
#>     green      blue       red      gold      gray    ltgray       tan     cream 
#> "#023b2c" "#335c67" "#a60f2d" "#fcb040" "#3e3d3d" "#7C7979" "#ccc29c" "#F2F0E6" 

washi_pal[["green_gradient"]]
#> [1] "#023B2C" "#1C4F40" "#376355" "#51776A" "#6C8B7E" "#879F93" "#A2B3A8"
#> [8] "#BCC7BC"

# Extract a color from the standard WaSHI palette
washi_pal[["standard"]][["green"]]
#> [1] "#023b2c"