A simple ASCII art animator
Project description
ascii-animator
A simple ASCII text animator.
The ascii-art-animator
CLI will take as input a GIF image, extract all the frames from it, convert each frame to ASCII art using ascii-magic, then display each frame to the terminal using l2term.
Installation
pip install ascii_animator
Usage
ascii-art-animator --help
usage: ascii-art-animator [-h] [-s SPEED] [-f FILE] [-d] [-a] [-m MAX_LOOPS]
Ascii Art Animator from GIF
optional arguments:
-h, --help show this help message and exit
-s SPEED, --speed SPEED
speed of the animation: very_slow, slow, normal, fast (default normal)
-f FILE, --file FILE the path to a gif file
-d, --debug display debug messages to stdout
-a, --show_axis display the grid axis
-m MAX_LOOPS, --max_loops MAX_LOOPS
maximum number of loops, set to 0 to loop through image until keyboard interrupt (default 3)
Examples
ASCII conversion and animation of GIF images
Convert the following GIF image
ascii-art-animator -f docs/images/marcovich.gif
Convert the following GIF image
ascii-art-animator -f docs/images/afuera.gif -s fast
Game-Of-Life
A Conway Game-Of-Life implementation that uses ascii_animator
to display the game to the terminal.
Development
Clone the repository and ensure the latest version of Docker is installed on your development server.
Build the Docker image:
docker image build \
-t \
ascii-animator:latest .
Run the Docker container:
docker container run \
--rm \
-it \
-v $PWD:/code \
ascii-animator:latest \
bash
Execute the build:
pyb -X
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ascii-animator-0.1.3.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for ascii_animator-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c472802bdfab63d6eb2cb79f17369cec478492a525f4e4a08a4c8de1d35e6b02 |
|
MD5 | 0e070a8b5398ff8100c42977c57cdab1 |
|
BLAKE2b-256 | 0d89f62aa314a41dafb0031965f019dd41dd03e83ed6651fbe6b72f3165105b2 |