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
pixelterm-1.0.5.tar.gz
(16.1 MB
view hashes)
Built Distribution
pixelterm-1.0.5-py3-none-any.whl
(16.1 kB
view hashes)
Close
Hashes for pixelterm-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d961c9f7fe5866205dc8a6827dac777e8cf6303345dc5a600e02a836f4e087ff |
|
MD5 | d511611cead66d9bbba747d40c34ad07 |
|
BLAKE2b-256 | 98ee7e54e5d76ad9177bacc9dd02f390fd653caaa1f4dcd53dd4937ad7bccdb4 |