feat: enhance screen background

This commit is contained in:
shokre 2021-09-16 20:42:13 +02:00
parent ca450a7063
commit 7f7db37814

View file

@ -8,4 +8,4 @@ def mem_listener(addr, val, cpu):
if 0x6000 <= addr <= 0x7FFF: # Video RAM if 0x6000 <= addr <= 0x7FFF: # Video RAM
y, x = divmod((addr - 0x6000) * 8, 256) y, x = divmod((addr - 0x6000) * 8, 256)
for i in range(8): for i in range(8):
alphaarray[x + i, y] = 255 if (val >> i) & 1 else 0 # Transparency mask alphaarray[x + i, y] = 255 if (val >> i) & 1 else 40 # Transparency mask