--- title: A pokemon based color lib keywords: fastai sidebar: home_sidebar summary: "Choose your pokemon and get their colors!" description: "Choose your pokemon and get their colors!" nb_path: "nbs/00_core.ipynb" ---
{% raw %}
{% endraw %} {% raw %}
{% endraw %} {% raw %}

load_pokemon_colours[source]

load_pokemon_colours()

Load json file containing HEX pokemon colours

{% endraw %} {% raw %}
{% endraw %} {% raw %}
{% endraw %}

this is very handy when you don't remeber the name of the pokemon your are looking for

{% raw %}
PokemonColours.pikachu
['#f5e551',
 '#f5bc1f',
 '#000000',
 '#9b5100',
 '#dd9300',
 '#613007',
 '#404049',
 '#282828',
 '#fef5a3',
 '#c41f17',
 '#e55940',
 '#fefefe',
 '#727282']
{% endraw %} {% raw %}

get_colormap[source]

get_colormap(pokemon:str)

Turns a stored colour palette into a matplotlib ListedColormap

{% endraw %} {% raw %}
{% endraw %} {% raw %}
get_colormap('pikachu')
from_list
from_list colormap
under
bad
over
{% endraw %} {% raw %}
get_colormap('bulbasaur')
from_list
from_list colormap
under
bad
over
{% endraw %}

Export