Skip to content

JoerdonFryeman/Matrix

Repository files navigation

ЭЛЕКТРОНИКА 54 (Matrix)

Your personal green rain of code in a Linux or Windows console!

Matrix

Startup

Download latest release.

In Linux, run Matrix_v1.0.9.app in the terminal or with the command:

cd /home/your_directories.../Matrix_v1.0.9/Linux/ && ./Matrix_v1.0.9.app

In Windows, run Matrix_v1.0.9.exe

Docker

Image latest release.

Run with attached standard streams (interactive terminal):

docker run -it joerdonfryeman/matrix:1.1.0

Same with automatic container removal after exit:

docker run --rm -it joerdonfryeman/matrix:1.1.0

Project structure

  • main.py: The main module to run the program.
  • matrix.py: Matrix symbol generation and animation module.
  • neo.py: The module of generation and animation of symbols of the program “Neo”.
  • base: Base module for all modules.
  • configuration.py: Module for loading program configuration data.
  • matrix_config.json: Program settings and configuration file.

Requirements

  • Python 3.13
  • windows-curses 2.4.1a1 (for Windows)
  • The application was developed for Arch Linux with the KDE Plasma desktop environment, but should work in other distributions as well as with limitations in Windows.

Installation

Download the project:

git clone https://github.com/JoerdonFryeman/Matrix
cd Matrix

For Linux

Just run the script in your console:

python main.py

For Windows

Create and activate a virtual environment:

python -m venv venv
venv\Scripts\activate

Install the requirements and run the script in your console:

python.exe -m pip install --upgrade pip
pip install -r requirements_for_windows.txt
python main.py

Stop

Just press Enter or try any other key.

Settings

Some program settings can be specified in the matrix_config.json file.

matrix_colors

  • Change the color of symbols: BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, WHITE, YELLOW.
  • Enable or disable info mode, matrix or neo modules.
  • Write your own sentences for example: "Fall asleep, Neo...".
  • You can also choose the rate of threads, voids or symbols and speed of rain.
  • With true or false you may enable and disable some kinds of symbols.

The default settings can be restored by deleting the matrix_config.json file and restarting the program.

License

This project is being developed under the MIT license.

Support with Bitcoin

bc1qewfgtrrg2gqgtvzl5d2pr9pte685pp5n3g6scy