From a0cbc5902996b52290afb486b3e2554e1abc123c Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Wed, 27 Mar 2024 15:47:05 +0200 Subject: colored texts --- src/sliceitoff/display/__init__.py | 1 + src/sliceitoff/display/colors.py | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/sliceitoff/display/colors.py (limited to 'src/sliceitoff/display') diff --git a/src/sliceitoff/display/__init__.py b/src/sliceitoff/display/__init__.py index 1decd21..42c1b12 100644 --- a/src/sliceitoff/display/__init__.py +++ b/src/sliceitoff/display/__init__.py @@ -1,3 +1,4 @@ from .scaling import Scaling from .display import Display from .static import INTERNAL_WIDTH, INTERNAL_HEIGHT +from .colors import EGA_COLORS diff --git a/src/sliceitoff/display/colors.py b/src/sliceitoff/display/colors.py new file mode 100644 index 0000000..18ccfc9 --- /dev/null +++ b/src/sliceitoff/display/colors.py @@ -0,0 +1,21 @@ +""" text.colors - colors are defined here """ + +EGA_COLORS=[ + (0x00,0x00,0x00,0xFF), + (0x00,0x00,0xAA,0xFF), + (0x00,0xAA,0x00,0xFF), + (0x00,0xAA,0xAA,0xFF), + (0xAA,0x00,0x00,0xFF), + (0xAA,0x00,0xAA,0xFF), + (0xAA,0x55,0x00,0xFF), + (0xAA,0xAA,0xAA,0xFF), + (0x55,0x55,0x55,0xFF), + (0x55,0x55,0xFF,0xFF), + (0x55,0xFF,0x55,0xFF), + (0x55,0xFF,0xFF,0xFF), + (0xFF,0x55,0x55,0xFF), + (0xFF,0x55,0xFF,0xFF), + (0xFF,0xFF,0x55,0xFF), + (0xFF,0xFF,0xFF,0xFF) +] + -- cgit v1.2.3