-
Notifications
You must be signed in to change notification settings - Fork 0
class Pixel
Gabriel S. Cabrera edited this page Apr 2, 2020
·
1 revision
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.
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