Create ASCII art animations for your terminal window
Note: this is now hosted at Codeberg
This is a little framework to make it (relatively) easy to make animations of things crossing your terminal window. Several examples are provided, and it's not too hard to make your own:
- put all these files in a directory somewhere (e.g. by cloning this git repo)
- make a new Bash script in the same place
- define a printToBuffers function that generates a frame when given a position (see samples for how to do this)
- source the
anim
file - (optional) override functions defined in
anim
- call
animate
There are some helper scripts:
- ranim - plays one random animation
- anims - plays all the animations in a random order
The muybridge*
sample animations are based on work by the Victorian photographer, Edweard Muybridge, who used multiple cameras to take a series of photos of moving objects.
He famously proved that a horse's hooves all leave the ground at once while galloping.
He took many sequences of shots of people and animals moving, and althought they are separate still photos, they work like the frames of a moving image.
The other samples are hand crafted ASCII art animation.