#matrix #terminal #color #speed #create #cycle #change

app rjmatrix

Creates the matrix in the terminal. Use c to cycle colors, 0-9 to change speed, and q to quit.

5 stable releases

1.0.4 Nov 7, 2024
1.0.3 May 17, 2024
1.0.2 May 14, 2024
1.0.1 May 11, 2024
1.0.0 May 5, 2024

#168 in Graphics APIs

Download history 18/week @ 2024-09-30 106/week @ 2024-11-04 7/week @ 2024-11-11 7/week @ 2024-11-18 54/week @ 2024-12-02

77 downloads per month

MIT license

1MB
534 lines

rmatrix

rmatrix is an implementation of the cmatrix project, but in Rust using the ratatui crate. rmatrix

Installation

Someone already had the name "rmatrix", so I had to call it "rjmatrix".

cargo install rjmatrix

Features

Resize

Properly handles resizing of the terminal window both vertically and horizontally.

Colors

Currently supports the following colors:

  • red
  • green
  • yellow
  • blue
  • purple
  • cyan
  • rainbow

Cycle through random colors by pressing c.

Speed

Change the speed the matrix falls on a scale of 1-10 (1 being the slowest and 10 being the fastest).

Cycle through the speed by pressing 0-9 (0 being the equivalent of 10).

Direction

Change the direction the matrix falls using the arrow keys.

Help

Usage: rmatrix [OPTIONS]

Options:
-c, --color <COLOR>  Available colors: blue, cyan, red, purple, yellow, green, rainbow
-s, --speed <SPEED>  Speed: 1-10
-h, --help           Print help

Future Improvements

  • Add more colors

Dependencies

~6–12MB
~126K SLoC