Skip to main content

OS-Windows OS-Linux OS-MacOS


cmdtrix

matrix-console-effect made in Python.
Explore the code »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

This project simply emulates "The Matrix"-effect on any console-terminal.

Made With

Python Python

(back to top)

Getting Started

Prerequisites

It is necessary that a font is installed that supports the unicode characters used (greek, cyrillic).

Installation

Version

  1. install the python package (PyPI-cmdtrix):
pip install cmdtrix
pip install git+https://github.com/SilenZcience/cmdtrix.git

(back to top)

Usage

cmdtrix [-h] [-c COLOR] ...
python -m cmdtrix [-h] [-c COLOR] ...
Argument Description
-h, --help show help message and exit
-v, --version output version information
-c [*], --color [*] set the main-color to *
-p [*], --peak [*] set the peak-color to *
-r, --rainbow enable rainbow color transitions
-d p, --dim p add chance p (percent) for dim characters
-i p, --italic p add chance p (percent) for italic characters
-b p, --bottomup p add chance p (percent) for bottom-up cascades
-m * p c hide a custom message * within the Matrix, with chance p and color c
-S *, --symbols * set a custom series of symbols to choose from
-j, --japanese use japanese characters (overrides -S; requires appropriate fonts)
-s, --synchronous sync the matrix columns speed
--framedelay DELAY set the framedelay (in sec) to slow down the Matrix, default is 0.015
--timer DELAY exit the Matrix after DELAY (in sec) automatically
--onkey only spawn columns on key-press

Examples

cmdtrix -m SilenZcience 5 red -m cmdtrix 5 blue -d 5 -m Star*The*Repo 10 magenta

Example0

Example2

Example2

Help

Q: Why am i seeing weird characters like r in the console?

A: This project uses ANSI-Escape Codes to display colors in the Terminal. If you see these weird characters, then your Terminal does not support these Codes.

⚠️If you are using the Conhost Command Prompt on Windows you can most likely solve this issue by going in the Registry under Computer\HKEY_CURRENT_USER\Console and adding/editing the DWORD value VirtualTerminalLevel and setting it to 1.


Q: Why are some characters partially white even though i specified a color?

A: This is a Bug inside the Terminal you are using. You can fix the issue by disabling all dimmed and italic characters using -d 0 -i 0

(back to top)

License

This project is licensed under the MIT License - see the LICENSE file for details

Contact

SilenZcience
GitHub-SilenZcience

Metadata

Release files for cmdtrix 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for cmdtrix 0.2.3
File Interpreter ABI Platform Actions
cmdtrix-0.2.3-py3-none-any.whl Python 3 none any Details for cmdtrix-0.2.3-py3-none-any.whl

Release files / cmdtrix-0.2.3-py3-none-any.whl

Download URL cmdtrix-0.2.3-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e554dbdce483460d414f2649926649fc984de786d04f90e0afe63cf12ad15fd
BLAKE2b-256 checksum
How to use checksums
e25181f3eaae2b51dd6329c0dfce1abd5247a0c48bb3d5e4d11fe4d16b1fb575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for cmdtrix 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page