Get Official BWB Colours
get_bwb_colours(
full_info = FALSE,
simple = TRUE,
conditions = NULL,
six = FALSE
)
if TRUE
, a data frame with columns
approx_name
, red
, green
, blue
, value
is returned. The column approx_name
contains the "approximate name"
of the colour, as found by http://chir.ag/projects/name-that-color).
By default, this argument is set to FALSE
in which case a named
vector containing only the "#rrggbb" strings is returned.
if TRUE
(the default) only the main colours with
clear names (blue, green, yellow, orange, red) are returned
optional. Vector of (four) condition names (best to worst)
to be used as the names of the returned vector of (four) colour codes.
FALSE
.
if TRUE
six colours from dark green to dark red are
returned. The default is FALSE
.
# Get a colour vector
get_bwb_colours()
#> blue green yellow orange red
#> "#0072C6" "#8AB925" "#E9E027" "#EEC722" "#AA1923"
# Plot these colours
plot_bwb_colours()
# Check the decimal numbers by setting full_info to TRUE
get_bwb_colours(full_info = TRUE)
#> approx_name red green blue value name
#> 1 lochmara 0 114 198 #0072C6 blue
#> 2 atlantis 138 185 37 #8AB925 green
#> 4 sunflower 233 224 39 #E9E027 yellow
#> 5 golden_dream 238 199 34 #EEC722 orange
#> 7 tamarillo 170 25 35 #AA1923 red
# Get six colours
get_bwb_colours(six = TRUE)
#> 0 1 2 3 4 5
#> "#8AB925" "#B2C967" "#E9E027" "#EEC722" "#E23642" "#AA1923"