summaryrefslogtreecommitdiff
path: root/src/sliceitoff/display/static.py
blob: 5bbea08297c2631671bbc4337f2e1d8a8f4153be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
""" display.static - static data like resolution and colors defined here """

INTERNAL_WIDTH = 320_000
INTERNAL_HEIGHT = 240_000

# https://forum.vcfed.org/index.php?threads/representing-ibm-5153-color-output-more-accurately.1234458/
CGA_COLORS=[
    (0x00,0x00,0x00,0xFF),
    (0x00,0x00,0xC4,0xFF),
    (0x00,0xC4,0x00,0xFF),
    (0x00,0xC4,0xC4,0xFF),
    (0xC4,0x00,0x00,0xFF),
    (0xC4,0x00,0xC4,0xFF),
    (0xC4,0x7E,0x00,0xFF),
    (0xC4,0xC4,0xC4,0xFF),
    (0x4E,0x4E,0x4E,0xFF),
    (0x4E,0x4E,0xDC,0xFF),
    (0x4E,0xDC,0x4E,0xFF),
    (0x4E,0xF3,0xF3,0xFF),
    (0xDC,0x4E,0x4E,0xFF),
    (0xF3,0x4E,0xF3,0xFF),
    (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],
]