Return a predefined Star Trek color palette from the trekpals
dataset.
trek_pal(palette, reverse = FALSE)
view_trek_pals(palette)
character vector of hex colors or palette names
Many of the palettes are qualitative, and not necessarily evenly spaced in terms of hue, saturation or brightness. This is because many palettes come from logos, symbols, insignia and other simple representations. However, several palettes have specifically been constructed as sequential or divergent if it made sense to do so based on the dominant colors present. Additional special functions exist for the subset of LCARS palettes.
trek_pal("lcars_2357")
#> [1] "#FFFF99" "#FFCC99" "#FFCC66" "#FF9933" "#664466" "#CC99CC" "#99CCFF"
#> [8] "#3366CC" "#006699"
# leave palette blank to list available names:
trek_pal()
#> [1] "andorian" "bajoran" "borg"
#> [4] "breen" "breen2" "dominion"
#> [7] "enara" "enara2" "ferengi"
#> [10] "gorn" "iconian" "klingon"
#> [13] "lcars_series" "lcars_2357" "lcars_2369"
#> [16] "lcars_2375" "lcars_2379" "lcars_alt"
#> [19] "lcars_first_contact" "lcars_nemesis" "lcars_nx01"
#> [22] "lcars_29c" "lcars_23c" "lcars_red_alert"
#> [25] "lcars_cardassian" "romulan" "romulan2"
#> [28] "starfleet" "starfleet2" "tholian"
#> [31] "terran" "ufp" "red_alert"
#> [34] "yellow_alert" "black_alert"
# to view all palettes
view_trek_pals()