summaryrefslogtreecommitdiff
path: root/src/sliceitoff/display
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-27 15:47:05 +0200
committerViljami Ilola <+@hix.fi>2024-03-27 15:47:05 +0200
commita0cbc5902996b52290afb486b3e2554e1abc123c (patch)
tree55f600717de02e961771932ad0e39080351f20cf /src/sliceitoff/display
parent61a1248e340d1c87a6c4e7dec77f1089984b87b6 (diff)
colored texts
Diffstat (limited to 'src/sliceitoff/display')
-rw-r--r--src/sliceitoff/display/__init__.py1
-rw-r--r--src/sliceitoff/display/colors.py21
2 files changed, 22 insertions, 0 deletions
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)
+]
+