GithubHelp home page GithubHelp logo

nikorasu / matrixcode Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 53 KB

Matrix-style code-rain terminal animations!

License: GNU General Public License v3.0

Python 100.00%
code-rain coderain matrix thematrix animation animations film japanese-characters japanese-kana kana

matrixcode's Introduction

A Matrix-style Code-Rain animation

This is a Python terminal animation, designed to mimic the look of "the code" as seen in the movie "The Matrix". It doesn't use the curses library, and should work on both Windows and Linux. If your terminal can't display unicode characters, set KANA to False.

matrix.py

This was my original simple method, which merely prints random characters in columns, without storing them, then prints empty spaces a randomly set distance above the start, to erase as it animates down. It uses the terminal default colors for dark green, bright green, & white. Tho those can be customized, and I also added a few other configurable options to the top of the files.

matrix2.py

More advanced version, has a nice fade-effect, supports custom colors, and even has a random color rainbow-mode. The color can be specified using HSV hue values (1-360), either by editing the COLOR setting on line 8, or from the terminal as an argument when running the code. Any integer from 1 to 360 is valid, 0 is reserved for the random color mode. Default is 120 for Green. Other common colors:

Orange = 30, Yellow = 60, Blue = 240, Purple = 270, Pink = 300, Red = 360

So in order to change the color to Blue, run using: python matrix2.py 240

Or to use the random color mode, run using: python matrix2.py 0


If you like my projects and want to help me keep making more, please consider donating on my Ko-fi page! Thanks!

ko-fi


    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.
    If not, see: https://www.gnu.org/licenses/gpl-3.0.html

Copyright (c) 2022 Nikolaus Stromberg - [email protected]

matrixcode's People

Contributors

nikorasu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

ii0

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.