Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sakura

A terminal cherry blossom animation.

Demo

sakura.mp4

Usage/Examples

First, install ascii-image-converter: https://github.com/LeandroBarone/python-ascii_magic

python sakura.py [OPTIONS]

Options:

-n, --num-leaves NUM       Override the automatically calculated petal count
-d, --delay SECONDS        Animation delay in seconds (default: 0.08)
-p, --petal-color R,G,B    Override the default pink palette with one RGB color
-b, --bg-color R,G,B       Background RGB color (optional)
-D, --drift NUM            Fixed drift per frame (default: 1)
-w, --wind-factor NUM      Wind random wobble factor (default: 1)
-t, --tree                 Display the sakura tree
    --tree-scale SCALE     Tree height relative to terminal height (default: 0.6)
-h, --help                 Show this help message

Examples:

./sakura.py --tree
./sakura.py --tree --tree-scale 0.8
./sakura.py --tree -p 255,192,203
./sakura.py --tree -p 255,0,0 -b 0,0,0
./sakura.py --tree --wind-factor 3
./sakura.py --tree --num-leaves 100

About

A terminal cherry blossom animation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages