/rain_matrix

Matrix Rain Effects is a multi-language project showcasing the Matrix rain effect, inspired by the iconic visual from the Matrix film series.

Primary LanguageJavaMIT LicenseMIT

Matrix Rain Effect

This project showcases the iconic "Matrix" rain effect, implemented in multiple programming languages: Java, C, Python, and HTML/JavaScript. Each implementation provides a unique approach to creating the same visual effect. Feel free in making improvements.

Table of Contents

Java Implementation

The Java version uses Swing for creating a graphical window where the Matrix rain effect is displayed. It also includes the author's name "Nerrison" as part of the rain effect.

Dependencies

  • Java Development Kit (JDK)

C Implementation

The C version utilizes basic graphics libraries to render the Matrix rain effect in a terminal or console window.

Dependencies

  • GCC (GNU Compiler Collection) or any other C compiler
  • NCurses library (for terminal graphics, if used)

Python Implementation

The Python version uses the Pygame library to create a window displaying the Matrix rain effect.

Dependencies

  • Python 3.x
  • Pygame (pip install pygame)

HTML/JavaScript Implementation

The HTML/JavaScript version uses the <canvas> element and JavaScript to render the Matrix rain effect directly in a web browser.

Dependencies

  • None (runs in any modern web browser)

Installation and Usage

Java

  1. Compile the Java program:
    javac MatrixRain.java
  2. Run the compiled Java program:
    java MatrixRain

C

  1. Compile the C program:
    gcc -o matrixRain matrixRain.c -lncurses
  2. Run the compiled C program:
    ./matrixRain

Python

  1. Install Pygame:
    pip install pygame
  2. Run the Python script:
    python matrixRain.py

HTML/JavaScript

  1. Open the index.html file in any modern web browser.

Contributing

Contributions are welcome! Please fork the repository and submit pull requests.

License

This project is licensed under the MIT License.