The pokemonPalette is a python library generate a color palette based on the colors of a chosen pokemon.
Project description
pokemonPalette

The pokePalette is a python library generate a color palette based on the colors of a chosen pokemon.
Requeriments:
numpy
opencv
pokebase
sklearn
Usage:
get_pokemon_palette("pokemon name", numcolors=x)
>>> from pokemonPalette import pokePalette
>>> palette = pokePalette.get_pokemon_palette("charizard")
>>> print(palette)
['#bd4831', '#0f4F64', '#ef8826', '#edD079']
Examples
import seaborn as sns import matplotlib.pyplot as plt from pokemonPalette import pokePalette titanic = sns.load_dataset("titanic") palette = pokePalette.get_pokemon_palette('gengar',numcolors=2) g = sns.factorplot("class", "survived", "sex", data=titanic, kind="bar", palette=palette, legend=False) plt.show()
![]()
import seaborn as sns import matplotlib.pyplot as plt from pokemonPalette import pokePalette sns.set_style('white') index = ['HP', 'Attack', 'Defense', 'Sp. Atk', 'Sp. Def', 'Speed'] bulbasaur = [45, 49, 49, 65, 65, 45] charmander = [39, 52, 43, 60, 50, 65] squirtle = [44, 48, 65, 50, 64, 43] palette_b = pokePalette.get_pokemon_palette('bulbasaur') palette_c = pokePalette.get_pokemon_palette('charmander') palette_s = pokePalette.get_pokemon_palette('squirtle') fig, axes = plt.subplots(1,3) fig.suptitle('Initial Pokemons - 1st Generantion') sns.barplot(ax=axes[0], x=index, y=bulbasaur, palette=palette_b) axes[0].set_title("bulbasaur") sns.barplot(ax=axes[1], x=index, y=charmander, palette=palette_c) axes[0].set_title("charmander") sns.barplot(ax=axes[2], x=index, y=squirtle, palette=palette_s) axes[0].set_title("squirtle")
![]()
Plans for next updates
- Add the option to get shiny Pokemon palette.
- Remove repeated colors.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pokemonPalette-0.0.2.3.tar.gz.
File metadata
- Download URL: pokemonPalette-0.0.2.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a8bd00a86590b845aa9ed5502a84dda7a4311d2f7eb01d3b0c2848ca0dbadb1
|
|
| MD5 |
1598549e6ba5da34734fd3bc01ffd6cd
|
|
| BLAKE2b-256 |
2e7f94bb0cf3d84d0b4f404e48dede40250c300ad0b72892e2db6939c214552f
|
File details
Details for the file pokemonPalette-0.0.2.3-py3-none-any.whl.
File metadata
- Download URL: pokemonPalette-0.0.2.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d55a71b2cdbd6be38c5e3262003ccbc0948ee355a4956b5fed0b719c51942659
|
|
| MD5 |
f47858cc76fdc173871f9dcfe4c41039
|
|
| BLAKE2b-256 |
e3f8bf434079d23a1b71e22161ff79b6db59beaef5e72d9b48d7c9473d113d2c
|