class Pixel - GabrielSCabrera/Termighty GitHub Wiki

Summary

The smallest unit displayed in Termighty – when printed, always takes up exactly one character position in the terminal. Object contains a single character string with a custom style, text color, and background color.

Example

Creating a pixel containing the letter A, with a black text color and white background color.

>>> from Termighty import Pixel
>>> R = 0; G = 0; B = 0
>>> pixel = Pixel(color_t = (0, 0, 0), color_b = (255, 255, 255), char = 'A')
>>> print(pixel)
A