summaryrefslogtreecommitdiff
path: root/src/sliceitoff/display/static.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-29 16:46:50 +0200
committerViljami Ilola <+@hix.fi>2024-03-29 16:46:50 +0200
commit43a58a7be48208f8d87ee5256c84008a02425ecf (patch)
tree8fee5e83861b7b1a382b26da4a089dc6872aa5b2 /src/sliceitoff/display/static.py
parent505ca2dead48d80b15f64f316218502bdc54daea (diff)
docstring etc linting
Diffstat (limited to 'src/sliceitoff/display/static.py')
-rw-r--r--src/sliceitoff/display/static.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sliceitoff/display/static.py b/src/sliceitoff/display/static.py
index a9f487a..8791fb0 100644
--- a/src/sliceitoff/display/static.py
+++ b/src/sliceitoff/display/static.py
@@ -1,2 +1,23 @@
+""" display.static - static data like resolution and colors defined here """
+
INTERNAL_WIDTH = 320_000
INTERNAL_HEIGHT = 240_000
+
+CGA_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)
+]