LDR8 / RGB-Matrix

Render a display RGB matrix from a source image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# RGB-Matrix

Render a display RGB matrix from a source image.


Dependency:

Pillow - https://pillow.readthedocs.io/en/stable/


Usage:

RGB-Matrix.py [-h] [-w] [-H] [-b] [-B] [-rw] [-rh]
positional arguments:
Filename of a single source-image, or directory for batch processing.

optional arguments: -h , --help show help message and exit -w , --width Width of each individual Pixel (R-G-B). -H , --height Height of each individual Pixel (R-G-B). -b , --block Block-Size defines the overall size of the repeated Pixel-Pattern -B , --black Shift brightness of black pixels to simulate backlight shining; 0 = black 100 = white -rw , --resizeWidth Resize width of source image. (For processing only) -rh , --resizeHeight Resize height of source image. (For processing only)


If you execute the script without optional arguments, these settings are used:

-w 1 -H 3 -b 4 -B 0

Supported file formats for source image:
.bmp, .jpeg, .jpg, .png, .tiff, .tif, .webp



Tips:

  • Output resolution = Input resolution * Block Size!
  • A pretty low resolution is recommended for the source image. The effect is more visible that way.

About

Render a display RGB matrix from a source image.


Languages

Language:Python 100.0%