Skip to content
TalkdedsecPublic

About

61 ASCII animations for the terminal: loaders, text effects and scenes. Rust library + CLI gallery.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

termanim

61 ASCII animations for the terminal: loaders, text effects and scenes.
A small Rust library with a CLI gallery. Works in cmd, PowerShell and Windows Terminal, and on Linux and macOS.

Download · Türkçe · MIT · Security · talkdedsec.com

donut, matrix, cube, fireworks, starfield and aquarium effects

Install

Windows: download termanim.exe from Releases and run it.

From source (any OS, needs Rust):

cargo install --git https://github.com/Talkdedsec/termanim

Usage

termanim                         # browse every effect: <- -> switch, +/- fps, q quit
termanim loaders                 # browse one group: loaders | text | scenes
termanim list                    # list effect names
termanim play fire               # play one effect, any key quits
termanim play wave --text HELLO  # text effects and loaders use --text
termanim frames art.txt --fps 6  # play your own ASCII frames, separated by '---' lines

Options: --text <s>, --fps <n> (default 30), --secs <n> (stop after n seconds).

Effects

Group Effects
Loaders (23) spin-line, spin-dots, spin-braille, spin-arc, spin-arrow, spin-quadrant, spin-grow, spin-ball, spin-pipe, spin-clock, spin-star, spin-box, spin-flip, spin-trigram, progress, progress-smooth, progress-multi, progress-rainbow, scanner, equalizer, snake-box, jump-dots, percent
Text (16) typewriter, matrix, glitch, decrypt, wave, rainbow, marquee, fade-in, bounce, shimmer, boot-log, hexdump, neon, flap, explode, stopwatch
Scenes (22) fire, starfield, hyperspace, snow, rain, plasma, fireworks, tunnel, donut, cube, life, ocean, metaballs, mandelbrot, spiral, dna, radar, bouncer, aquarium, ecg, maze, swarm

As a library

[dependencies]
termanim = { git = "https://github.com/Talkdedsec/termanim" }
// Play a built-in effect for 3 seconds.
let fire = termanim::find("fire").unwrap();
termanim::play((fire.make)(""), 30, Some(3.0))?;

// Or write your own: draw on the canvas each frame.
let mine = termanim::effect(|c, t, _dt| {
    let x = (c.w as f64 / 2.0 + t.sin() * 10.0) as i32;
    c.text(x, c.cy(), "hello", termanim::hsv(t * 0.2, 0.8, 1.0));
});
termanim::play(mine, 30, None)?;

Canvas has set, text, center and line; big_text draws a 5-row block font. Colours are 24-bit RGB.

Notes

  • Classic cmd windows with the Consolas font may show a few symbols (braille, ◴, ✶) as boxes. Windows Terminal shows them all.
  • The animations above are generated with cargo run --release --example record.

MIT © Talkdedsec · talkdedsec.com

About

61 ASCII animations for the terminal: loaders, text effects and scenes. Rust library + CLI gallery.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages