Skip to content

CDWimmer/PokePalette

Repository files navigation

PokePalette

license pyversion stars size coffee

649 Pokémon, broken down into CSVs of their RGB colour palettes.

Complete with a Python library to convert names or Pokédex IDs into either #hex colours, or MatPlotLib compatible ListedColormaps.


The individual CSV files of the palettes as RGB values can be found in the palettes directory.

Requirements:

  • numpy
  • matplotlib (optional)

Usage:

Hex values

>>> import pokepalette
>>> my_palette = pokepalette.get_palette(f"torchic")
>>> print(my_palette)
['#fe8a30', '#000000', '#f5dd69', '#e5591f', '#ab8a00', '#edbc30', '#ab400f', '#feab51', '#8a511f', '#7a4917', '#fefefe']

matplotlib ListedColormaps Generator

Naturally this requires matplotlib be installed.

>>> import pokepalette
>>> newcmp = pokepalette.get_colormap(f"torchic")

newcmp can then be inserted anywhere that takes a qualitative colourmap. A demo viewer for this is included in pokepalette_viewer:

>>> import pokepalette_viewer
>>> pokepalette_viewer.view("torchic")

torchic colour palette

Colour Picker

There is also included a rudimentary "colour picker" GUI tool that displays all colours as clickable buttons, which copies the clicked hex code to your clipboard. Text entry box accepts both names and IDs.

>>> import pokepalette_viewer
>>> pokepalette_viewer.picker(pokemon=255, on_top=True)  # torchic = 255

torchic_colour_picker


And yes, it's using the proper spelling of "colour" internally.

Twitter Follow

About

649 Pokémon palettes as CSVs, with a Python lib to turn names/IDs into palettes, or MatPlotLib compatible ListedColormaps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages