Skip to content

A CLI command to print an ASCII art picture with cool shuffle effect

License

Notifications You must be signed in to change notification settings

Lennart1978/shuffle

Repository files navigation

shuffle

The shuffle command prints an ASCII art picture with a cool shuffle effect.

You can also shuffle any text file, even if it contains Unicode characters.

Now you can also use it with a pipe:

cat file.ascii | shuffle -s 100 -c random

Usage

shuffle SOURCE -s speed -c color

-s speed: 1 fast to 500 very slow.

-c color: Must be in the format "r;g;b" or one of the standard colors: red, green, yellow, blue, magenta, cyan, orange, white, black, grey, or just "random".

-h show this help.

-v show version.

Example

shuffle file.ascii -s 10 -c "50;255;50"

prints file.ascii in bright green.

shuffle file.ascii -s 50 -c orange

prints it with the standard color (orange).

Build with Meson or Make

Meson:

mkdir builddir && meson setup builddir --buildtype=release --prefix=/usr/bin && meson compile -C builddir

Make:

make  

Install with Meson or Make:

Meson:

sudo meson install -C builddir  

Make:

sudo make install

For Arch Linux users: It is now available in the AUR as 'shuffle-ascii'.

Shuffle animation By the way animation The complete code merged: Code merged svg

About

A CLI command to print an ASCII art picture with cool shuffle effect

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published