termatrix

Cli application to simulate the falling glyphs from "The Matrix" in your terminal (forked from rustmatrix).

tematrix color scrolling GIF

Installation

Cargo

shell cargo install termatrix

NetBSD

shell pkgin install termatrix

Usage

```shell $ termatrix --help termatrix

USAGE: termatrix [OPTIONS]

OPTIONS: -c, --colors Weighted sequence of colors (repeat color character for greater weight). (valid chars are: b, c, g, k, m, r, w, y [env: TERMATRIX_COLORS=] [default: g]

-d, --min-step-delay <MIN_STEP_DELAY>
        Minimum value of trace (column) scroll delay in milliseconds. [env:
        TERMATRIX_MIN_STEP_DELAY=] [default: 40]

-D, --max-step-delay <MAX_STEP_DELAY>
        Maximum value of trace (column) scroll delay in milliseconds. [env:
        TERMATRIX_MAX_STEP_DELAY=] [default: 120]

-f, --update-frequency <UPDATE_FREQUENCY>
        Refresh rate (in Hz) for terminal updates. [env: TERMATRIX_UPDATE_FREQUENCY=] [default:
        60]

-h, --help
        Print help information

```

Customization

Default

Defaults to green glyphs: termatrix termatrix green

Colors

You can select a combination of colors via the --colors/-c option: termatrix -c rgbcmy Or via the TERMATRIX_COLORS environment variable: TERMATRIX_COLORS=rgbcmy termtarix termtarix color

Step Delays

Step delay is a minimum duration between updates to a trace (vertial cluster of glyphs). The step delay for each trace is a randomly selected duration between the -min-step-delay and the --max-step-delay.

The variation in step delays results in faster traces passing slower traces. If --min-step-delay and --max-step-delay are the same, all traces will move at the same rate.