trek_pal: Star Trek color palettes

Description Usage Arguments Details Value See Also Examples

View source: R/trekcolors.R

Description

Return a predefined Star Trek color palette from the trekpals dataset.

Usage

1
2
3

Arguments

palette

character, name of predefined palette. If missing, return all available palette names.

reverse

logical, reverse color order.

Details

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.

Value

character vector of hex colors or palette names

See Also

lcars_pals, scale_lcars

Examples

1
2
3
4
5
6
trek_pal("lcars_2357")
# leave palette blank to list available names:
trek_pal()

# to view all palettes
view_trek_pals()

trekcolors documentation built on June 1, 2021, 5:10 p.m.