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)

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.

Details

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)

Example output



palettetown documentation built on May 1, 2019, 7:49 p.m.