Python pygame project that turns your images to matrix rain

Overview

Matrix-Rain-An-Image

This project implements the classic Matrix digital rain effect in python with pygame to build up an image provided with multiple mode selection

Examples

Features

  • Isolate a single color from an image to be drawn
  • Isolate lines from any image to then be drawn
  • Different drawing modes

Install & Usage

  1. Clone repo

    git clone "https://github.com/CodeAccelerando/Matrix-Rain-An-Image.git"
  2. Make sure to have requirements installed

    pip install requirements.txt
  3. Edit config

    cd Matrix-Rain-An-Image
    vim src/config.py
  4. Run program with input image

    python -m src/main.py images/garf.jpg

Credits

The foundations of this repo were built on the code provided by the MATRIX-Digital-Rain project so show some love there if you are to do so here :)

You might also like...
A python program to generate ANSI art from images and videos
A python program to generate ANSI art from images and videos

ANSI Art Generator A python program that creates ASCII art (with true color support if enabled) from images and videos Dependencies The program runs u

Optimize/Compress images using python

Image Optimization Using Python steps to run the script run the command to install the required libraries pip install -r requirements.txt create a dir

HTML2Image is a lightweight Python package that acts as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files.
HTML2Image is a lightweight Python package that acts as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files.

A package acting as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files.

Image Reading, Metadata Conversion, and Image Writing for Microscopy Images in Python

AICSImageIO Image Reading, Metadata Conversion, and Image Writing for Microscopy Images in Pure Python Features Supports reading metadata and imaging

Seaborn-image is a Python image visualization library based on matplotlib and provides a high-level API to draw attractive and informative images quickly and effectively.
Seaborn-image is a Python image visualization library based on matplotlib and provides a high-level API to draw attractive and informative images quickly and effectively.

seaborn-image: image data visualization Description Seaborn-image is a Python image visualization library based on matplotlib and provides a high-leve

starfish is a Python library for processing images of image-based spatial transcriptomics.
starfish is a Python library for processing images of image-based spatial transcriptomics.

starfish: scalable pipelines for image-based transcriptomics starfish is a Python library for processing images of image-based spatial transcriptomics

View images in the terminal using ansi escape codes and python
View images in the terminal using ansi escape codes and python

terminal-photo-viewer view images in the terminal using ansi escape codes and python !! Only tested on Ubuntu 20.04.3 LTS with python version 3.8.10 D

A python script for extracting/removing exif data from images by @AbirHasan2005

Image-Exif A Python script for extracting exif metadata from images. How to use? Using this script you can extract exif data from image and save in .c

An python script to convert images to upscaled versions made out of one-colour emojis.

ABOUT This is an python script to convert png, jpg and gif(output isnt animated :( ) images to scaled versions made out of one-colour emojis. Please n

Comments
  • pygame.error: Couldn't find glyph

    pygame.error: Couldn't find glyph

    I am getting following error when I run this code python src/main.py images/garf.jpg

    Hello from the pygame community. https://www.pygame.org/contribute.html
    Traceback (most recent call last):
      File "/Users/celik/codes/oak/Matrix-Rain-An-Image/src/main.py", line 159, in <module>
        main()
      File "/Users/celik/codes/oak/Matrix-Rain-An-Image/src/main.py", line 101, in main
        symbol_list, symbol_columns = get_symbols(img)
      File "/Users/celik/codes/oak/Matrix-Rain-An-Image/src/main.py", line 46, in get_symbols
        symbol_list.append(Symbol(x, y, 0, pygame.Color("white")))
      File "/Users/celik/codes/oak/Matrix-Rain-An-Image/src/symbol.py", line 28, in __init__
        self.charSet = [font.render(char, True, color) for char in katakana]
      File "/Users/celik/codes/oak/Matrix-Rain-An-Image/src/symbol.py", line 28, in <listcomp>
        self.charSet = [font.render(char, True, color) for char in katakana]
    pygame.error: Couldn't find glyph```
    opened by celikmustafa89 2
  • Improving Code

    Improving Code

    Added

    • config added SCREEN_SIZE in config class
    • install created requirements.txt for easier installations

    Improvement

    • dispatch partial dispatch of function to reduce complexity.
    • names Using pep8 pythonic naming convention.
    • install Made readme installation commands more readable.
    • flatten Applied 80 char length lines rules and reduced intents.
    • simplification Reduce code size using pythonic statements
    • exit Replace exit and quit call by return and infinite loop with boolean and is_running variables

    Fixed

    • surface fixed an error at end of the program when closing it.
    opened by Sigmanificient 1
Owner
Just trying to share my crazy ideas and keep creative
null
missing-pixel-filler is a python package that, given images that may contain missing data regions (like satellite imagery with swath gaps), returns these images with the regions filled.

Missing Pixel Filler This is the official code repository for the Missing Pixel Filler by SpaceML. missing-pixel-filler is a python package that, give

SpaceML 11 Jul 19, 2022
Convert bitmap images to seeds for Tiny-83 NFT project.

What is this? This tool allows you to convert any 14p high and 22p wide Bitmap (.bmp) to the seed needed for the Tiny-83 NFT project. Project Twitter:

shib_maximalist 1 Oct 31, 2021
Fuzzware is a project for automated, self-configuring fuzzing of firmware images

Fuzzware Fuzzware is a project for automated, self-configuring fuzzing of firmware images. The idea of this project is to configure the memory ranges

null 190 Dec 21, 2022
💯 Watermark your images with one line of command

Watermarker ?? Watermark your images with one line of command ?? $ pip3 install

Orhan Emre Dikicigil 3 May 1, 2022
Rotates your images in the spirit of rot13

Image Rotator (imrot10) Its like rot13 but for images. Calling the algorithm imrot10 for im = image, rot = rotation, 10 = default magnitude. Unfortuna

Sarah 2 Dec 10, 2021
🖼️ Draw Images or GIFs in your terminal

Drawitor Draw Images/GIFs in your terminal. Install pip install drawitor CLI Tool drawitor cat_dancing.gif Library The library is written in a simple

Eliaz Bobadilla 7 Dec 15, 2022
This Github Action automatically creates a GIF from a given web page to display on your project README

This Github Action automatically creates a GIF from a given web page to display on your project README

Pablo Lecolinet 28 Dec 15, 2022
Simple Python / ImageMagick script to package images into WAD3s for use as GoldSrc textures.

WADs Out For [The] Ladies Simple Python / ImageMagick script to package images into WAD3s for use as GoldSrc textures. Development mostly focused on L

null 5 Apr 9, 2022
Python Image Morpher (PIM) is a program that can take two images and blend them to whatever extent or precision that you like

Python Image Morpher (PIM) is a program that can take two images and blend them to whatever extent or precision that you like! It is designed to emulate some of Python's OpenCV image processing from scratch without reference.

David Dowd 108 Dec 19, 2022