Skip to content

A simple console program for displaying the effect of matrix rain

License

Notifications You must be signed in to change notification settings

artgl42/MatrixDigitalRain

Repository files navigation

MatrixDigitalRain (DLL)

matrix_digital_rain.gif

Description

This console application emulates matrix digital rain in the console window and various other effects. The application is a fan remake of the matrix digital rain effect from The Matrix.

API

Matrix.Builder Class (fluent interface)

Methods Parameters Description
SetSkipIntro bool skipIntro True - skip the introduction (run only the matrix rain). False (default value) - don't skip the introduction.
SetRandomColor bool randomColor True - run a multicolored matrix rain. False (default value) - run the green matrix rain.
SetShowQuoteAfter int showQuoteAfter Set the frequency of quotes during the matrix rain (default value - 290).
SetResetMatrixAfter int resetMatrixAfter Set the frequency of reset the matrix rain (default value - 300).
SetTextASCII string[,] textASCII Set your ASCII-text for the introduction.

Matrix Class

Methods Description
RunFullVersion Run the RunMatrixRain and RunMatrixColumns modules.
RunMatrixRain Run only the RunMatrixRain module.
RunMatrixColumns Run only the RunMatrixColumns module.

How To Use

Step 1

  1. Add this project to any of your projects, using the Solution Explorer -> Add -> Existing Project by right-clicking on the Solution Explorer.

or

  1. Build this project, using the Solution Explorer -> Build Solution by right-clicking on the Solution Explorer.

  2. Copy the created MatrixDigitalRain.dll file to the folder of your project, where the executable file (.exe) is located.

  3. Add reference to MatrixDigitalRain.dll file, using the Reference -> Add Reference by right-clicking on the Reference in Solution Explorer.

Step 2

Use the methods in the Matrix.Builder (fluent interface) to configure and build:

IMatrix matrix = new Matrix.Builder()
                    .SetRandomColor(true) // run a multicolored matrix rain
                    .Build();

Step 3

Use the methods in the Matrix to run:

matrix.RunFullVersion();

or

matrix.RunMatrixRain();

or

matrix.RunMatrixColumns();

Simple example

IMatrix matrix = new Matrix.Builder()
                    .SetRandomColor(true)
                    .Build();

matrix.RunFullVersion();

Keyboard shortcut

Keys Description
F1 Press the key to display help.
Escape Press the key to restart app.
1..6 Press the number key to change the color of the matrix rain.
UpArrow Press the key to slow down the matrix rain.
DownArrow Press the key to speed up the matrix rain.
Spacebar Press the key to pause.
Enter Press the key to display the command line.

Licence

MIT License Copyright (c) 2020 Artem Glushkov

About

A simple console program for displaying the effect of matrix rain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages