🚧 Work in Progress
CLI application that mimics the iconic CG from "The Matrix".
This is my attempt at building cmatrix clone using rust
USAGE:
rsmatrix [OPTIONS]
OPTIONS:
-b, --bold <BOLD>
Set characters bold (random still sets head to bold)
OPTIONS: true, false, random,
[default: random]
-c, --charset <CHARSET>
Set charset of characters displayed
OPTIONS: ascii, katakana,
[default: ascii]
-f, --frames <FRAMES>
Set update frequency (the higher, the faster)
[default: 120]
-h, --head <HEAD>
Set color of a head character
OPTIONS: white, red, blue, green, magenta, cyan, yellow, random, rainbow, r,g,b
[default: white]
--help
Print help information
-l, --brightness <BRIGHTNESS>
Set brightness effect for tail
OPTIONS: none, random, gradient
[default: random]
-t, --tail <TAIL>
Set color of tail characters
OPTIONS: white, red, blue, green, magenta, cyan, yellow, random, rainbow, r,g,b
[default: green]
-V, --version
Print version information
- clone this repo then,
cargo run
cargo run -- [OPTIONS]
- press
q
while running to quit
- terminal backend https://crates.io/crates/termion
- CLI arguments https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_derive/README.md
- original source cmatrix https://github.com/abishekvashok/cmatrix/blob/master/cmatrix.c
- termion example https://github.com/redox-os/games/blob/master/src/minesweeper/main.rs
- rust cookbook https://rust-lang-nursery.github.io/rust-cookbook/algorithms/randomness.html
- ref for how terminal animation is implemented https://github.com/Treeniks/throbber