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
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:
- Utah Teapot
Renders a rotating 3D Utah Teapot.- Backface culling
- Z buffering
- Double-width characters
- 3D rendering
- Custom shaders
- Color Palette
Renders a palette of various text colors and styles.- Colors & Modifiers
- Mandelbrot
Renders an infinitely zooming-in Mandelbrot set.- Point rendering
- Realtime Keyboard
Displays keyboard input in realtime.- Text rendering
- Realtime keyboard input
- Textured Cube
Renders a texture-mapped cube.- Backface culling
- Z buffering
- Double-width characters
- 3D rendering
- Shaders
- Texture mapping
- RGB
Renders overlapping red, green, and blue circles.- 24 bit RGB
- Text rendering
- Mouse
Displays mouse position and button state.- Mouse tracking
- Text rendering
Gallery
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
termgl-0.2.1.tar.gz
(28.5 kB
view details)
File details
Details for the file termgl-0.2.1.tar.gz
.
File metadata
- Download URL: termgl-0.2.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73e523300707972096d3429fc0075be32c2e32958f887cb101a9a62dc73f0d77 |
|
MD5 | 858dc5b09524332710fd813d06ac5c28 |
|
BLAKE2b-256 | 0507250b1adc51412dde74356e684b14ec387262512538d941fe0547c86dd317 |