Skip to main content

Terminal-based 2D & 3D graphics library.

Project description

TermGL

A terminal-based graphics library for 2D and 3D graphics.

Features:

  • Windows & *NIX support
  • C99 compliant without external dependencies
  • Custom vertex and pixel shaders
  • Affine texture mapping
  • 24 bit RGB
  • Indexed color mode: 16 Background colors, 16 foreground colors, bold and underline
  • Non-blocking input from terminal
  • Mouse tracking

CUBE

Installation

Package can be found on PyPI and can be installed using pip:

pip install termgl

Documentation

The best way to learn to use TermGL is to read the tutorial here.

Additionally, documentation of all public members of TermGL can be found here.

Demo

A variety of demos can be found in the demo directory. To run the demo utility, simply python demo.

Available demos and TermGL features used:

  1. Utah Teapot
    Renders a rotating 3D Utah Teapot.
    • Backface culling
    • Z buffering
    • Double-width characters
    • 3D rendering
    • Custom shaders
  2. Color Palette
    Renders a palette of various text colors and styles.
    • Colors & Modifiers
  3. Mandelbrot
    Renders an infinitely zooming-in Mandelbrot set.
    • Point rendering
  4. Realtime Keyboard
    Displays keyboard input in realtime.
    • Text rendering
    • Realtime keyboard input
  5. Textured Cube
    Renders a texture-mapped cube.
    • Backface culling
    • Z buffering
    • Double-width characters
    • 3D rendering
    • Shaders
    • Texture mapping
  6. RGB
    Renders overlapping red, green, and blue circles.
    • 24 bit RGB
    • Text rendering
  7. Mouse
    Displays mouse position and button state.
    • Mouse tracking
    • Text rendering

Gallery

LOGO

CANYON

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

termgl-0.2.0.tar.gz (28.5 kB view details)

Uploaded Source

File details

Details for the file termgl-0.2.0.tar.gz.

File metadata

  • Download URL: termgl-0.2.0.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for termgl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b13da1ac5b4011690ed02aa9b606bbe05b0fd36a1e7b08a235987229f24f932b
MD5 3060c41dfdde91cc7c9b30d91fe96ef8
BLAKE2b-256 2c24bfda0f977a4b99e6c574be7a0b156433203cf5d40cfa77216685ba562e2c

See more details on using hashes here.

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