Home

Awesome

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)

MethodsParametersDescription
SetSkipIntrobool skipIntroTrue - skip the introduction (run only the matrix rain). False (default value) - don't skip the introduction.
SetRandomColorbool randomColorTrue - run a multicolored matrix rain. False (default value) - run the green matrix rain.
SetShowQuoteAfterint showQuoteAfterSet the frequency of quotes during the matrix rain (default value - 290).
SetResetMatrixAfterint resetMatrixAfterSet the frequency of reset the matrix rain (default value - 300).
SetTextASCIIstring[,] textASCIISet your ASCII-text for the introduction.

Matrix Class

MethodsDescription
RunFullVersionRun the RunMatrixRain and RunMatrixColumns modules.
RunMatrixRainRun only the RunMatrixRain module.
RunMatrixColumnsRun 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

KeysDescription
F1Press the key to display help.
EscapePress the key to restart app.
1..6Press the number key to change the color of the matrix rain.
UpArrowPress the key to slow down the matrix rain.
DownArrowPress the key to speed up the matrix rain.
SpacebarPress the key to pause.
EnterPress the key to display the command line.

Licence

MIT License Copyright (c) 2020 Artem Glushkov