A tiny library and application for animating text in the terminal.
🪄 It's so easy to add some flair to your text RPGs or console programs. 🪄
☝️ From Fun Stuff example. (obviously looks smoother in an actual terminal)
Compatible with EVERYTHING! 🥳
Snailshell works with any type which implements Display
, so literally everything that you would normally use with print!()
, println!()
, or format!()
just works!
This includes colored text from other libraries such as Crossterm.
```rust use snailshell::*;
// It's dead simple. snailprint("hello, friend :)"); ```
rust
snailprint_d("This whole message will print in half a second regardless of the size.", 0.5);
rust
// This is optional. Default fps is 60.
// All subsequent snailprint functions will use this fps.
set_snail_fps(30);
You can also use snailshell from the command line.
Useful for making shell scripts and videos!
cargo install snailshell
```USAGE:
snailshell [OPTIONS]
ARGS:
OPTIONS:
-d, --duration
snailshell "text you want to animate"
This crate is licensed under the MIT license.