ph04 / pokemon-icat

Shows any Pokémon sprite in your terminal!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pokemon-icat

This script is inspired by this project, but since the output heavily depends on the font of your terminal, i decided to make a script that shows a true PNG image of the Pokémon (of course, this script requires a terminal that supports images).

Screenshot

Installation

Important: this script currently works only on Kitty, but in pokemon-icat.sh you can change this behaviour by editing the last line, which shows the picture in the terminal.

To install the script, you must first have all the necessary packages installed:

  • Python 3.8.x
  • pip3
  • numpy
  • aiohttp

After making sure that you have all of these installed, run this command:

git clone https://github.com/ph04/pokemon-icat && cd pokemon-icat && chmod +x install.sh && ./install.sh

which should start the installation process of the script, by downloading every picture of every Pokémon.

By default, this will download every Pokémon with an upscaling factor of the original image of 9, but if you want to change this, run the last command with the option --upscale [upscaling factor], for example:

./install.sh -u 15

Usage

To show a random pokemon, simply run:

$HOME/.pokemon-icat/pokemon-icat.sh

If you want to specify one or more generations in particular, simply add --gen [numbers] at the end, for example:

$HOME/.pokemon-icat/pokemon-icat.sh -g 3 4 5

If you want to show a pokemon in particular, just use the --pokemon [pokemon] flag, for example:

$HOME/.pokemon-icat/pokemon-icat.sh -p charizard

About

Shows any Pokémon sprite in your terminal!

License:GNU General Public License v3.0


Languages

Language:Python 98.8%Language:Shell 1.2%