From e6a958b6c9d5f6c77918e11f3f862156d563ba14 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Fri, 26 Apr 2024 22:49:31 +0300 Subject: levels with different colors --- src/sliceitoff/display/__init__.py | 2 +- src/sliceitoff/display/static.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/sliceitoff/display') diff --git a/src/sliceitoff/display/__init__.py b/src/sliceitoff/display/__init__.py index 543636b..cc319b9 100644 --- a/src/sliceitoff/display/__init__.py +++ b/src/sliceitoff/display/__init__.py @@ -1,4 +1,4 @@ """ display - All drawing to the display should happen here """ from .scaling import Scaling from .display import Display -from .static import INTERNAL_WIDTH, INTERNAL_HEIGHT, CGA_COLORS +from .static import INTERNAL_WIDTH, INTERNAL_HEIGHT, CGA_COLORS, RAINBOW_COLORS diff --git a/src/sliceitoff/display/static.py b/src/sliceitoff/display/static.py index 054e6b8..fdbba3c 100644 --- a/src/sliceitoff/display/static.py +++ b/src/sliceitoff/display/static.py @@ -22,3 +22,13 @@ CGA_COLORS=[ (0xF3,0xF3,0x4E,0xFF), (0xFF,0xFF,0xFF,0xFF) ] + +RAINBOW_COLORS=[ + CGA_COLORS[15], + CGA_COLORS[13], + CGA_COLORS[9], + CGA_COLORS[11], + CGA_COLORS[10], + CGA_COLORS[14], + CGA_COLORS[12], +] \ No newline at end of file -- cgit v1.2.3