Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

itsakeyfut/rustrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustrix

Status Rust Version License: MIT

🚧 This project is under active development. Breaking changes may occur.

Overview

Rustrix is a terminal-based animation project that simulates a "falling text" effect, inspired by scenes from the movie The Matrix. Characters flow down the terminal screen in a randomized, visually dynamic manner.

Screenshots

bin

Binary

random

Random

rainbow

Rainbow

Purpose

This project was created to learn how to define and handle command-line arguments and implement smooth terminal animations using Rust. Mastering CLI arguments has significantly benefited my other Rust projects by providing flexible runtime configurations.

Features

  • Control animation behavior via command-line arguments:
    • Text color
    • Language (character set)
    • Font size (character scaling)
    • Animation speed
    • Text density
    • Randomized character mode
    • Rainbow color mode
  • Smooth terminal animations using crossterm
  • Custom random number generator to control character appearance probabilities

Technical Implementation

  • Rust v1.86
  • clap v4.5
  • crossterm v0.28
  • ctrlc v3.4
  • rand v0.8

Building from Source

cargo build --release

Usage

Help

target/release/rustrix --help

Version

target/release/rustrix --version

Select Language

target/release/rustrix -l bin

or

target/release/rustrix --language bin

Set Text Color

target/release/rustrix -C red

or

target/release/rustrix --color red

Enable Random Mode

target/release/rustrix -r

or

target/release/rustrix --random

Enable Rainbow Color Mode

target/release/rustrix -R

pr

target/release/rustrix --rainbow

Adjust Text Speed

target/release/rustrix -v slow

or

target/release/rustrix --velocity slow

Adjust Text Density

target/release/rustrix -d 0.2

or

target/release/rustrix --density 0.2

Future Development

  • Create a WebGL-based version to run animations in browsers
  • Develop a Firefox extension/theme featuring the animation

License

MIT License

Author

itsakeyfut

Feel free to contact me for collaboration or job opportunities.

About

Terminal Animation with Crossterm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages