Coder Social home page Coder Social logo

matrixdigitalrain's Introduction

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

matrixdigitalrain's People

Contributors

artgl42 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.