Terminal Graphics Rendering Library
Project description
Pixelterm
Render images, shapes, and videos in the terminal
Pixelterm allows you to draw on modern terminal windows using "pixels" instead of just characters.
The "pixels" Pixelterm uses are exactly 1 character wide and 1/2 of a character tall.
Features
- Draw lines, boxes, custom fonts*, images, and gradients on "frames" (representations of pixels)
- Optimized rendering between frames (in case of animations/videos)
- Flexible coloring/styling utility for printing text with any foreground/background color and style (bold, italic, underline, etc.)
*All custom fonts must be monospaced, and only one is provided by default. For details on how to create your own, see pixelterm/font.py. Note that these fonts will be relatively large because of the low number of pixels that can fit on a terminal screen.
Installation
pip install pixelterm
Dependencies: numpy, scikit-image, pillow
Examples
- Snake (
examples/snake) - Geometry Dash clone (repository)
- Bad Apple!! (
examples/bad_apple) - Bad Apple!! w/ transparent DVD screensavers bouncing around (
examples/terrible_apple)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixelterm-1.0.5.tar.gz.
File metadata
- Download URL: pixelterm-1.0.5.tar.gz
- Upload date:
- Size: 16.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
938106b03bcef418197f746c8a254f9f790d59cfe3f16c6d3168beef54f52cae
|
|
| MD5 |
1346789cf77bdad67298216879bb3504
|
|
| BLAKE2b-256 |
68d0944ede5e8e9767f908685da96e731227813a7ef806803d00476d290c75a3
|
File details
Details for the file pixelterm-1.0.5-py3-none-any.whl.
File metadata
- Download URL: pixelterm-1.0.5-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d961c9f7fe5866205dc8a6827dac777e8cf6303345dc5a600e02a836f4e087ff
|
|
| MD5 |
d511611cead66d9bbba747d40c34ad07
|
|
| BLAKE2b-256 |
98ee7e54e5d76ad9177bacc9dd02f390fd653caaa1f4dcd53dd4937ad7bccdb4
|