Skip to main content

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


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)

Uploaded Source

Built Distribution

pixelterm-1.0.5-py3-none-any.whl (16.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page