pokedex: Display pokemon palettes.

Description Usage Arguments Details Examples

Description

Display 10 pokemon palettes starting from a name or number. If no name or number is given, 10 of the better palettes are displayed. Pokedex is a Trademark of Nintendo.

Usage

1
pokedex(pokemon = NULL, spread = NULL, cb = NULL, extra = NULL)

Arguments

pokemon

An integer or character pokemon name

spread

How many, quite distinct, colours should be returned. See details.

cb

A number between 1 and 4 to select ten of 40 colourblind friendly (Deuteranomaly) palettes. pokemon is ignored if used, but spread works as normal.

extra

f an integer, show the extra palettes starting from that number

Details

Many of the pure pokemon palettes are not great. I have manually created a few "extra" palettes (e.g., teamrocket). These might be easier to use.

If spread is given an integer, the full palette is clustered into that many groups (ward clustering in HSV space). The most common colour in each cluster is then returned. It is hoped this will give a good balance between reflecting the pokemons colouring while giving relatively distinct colours.

Thanks to Luis Verde for the colourblind suitable selection.

Examples

1
2
3
4
5
pokedex()
pokedex('Metapod')
pokedex(5, spread = 2)
pokedex(cb = 3)
pokedex(cb = 2, spread = 6)

timcdlucas/palettetown documentation built on May 31, 2019, 1:48 p.m.