From f63b1af0887fd40aefa12391dbed7597812d37e6 Mon Sep 17 00:00:00 2001 From: KikooDX Date: Sun, 12 Apr 2020 18:23:21 +0200 Subject: [PATCH] (sprito.py) Created byte pallet --- sprito.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sprito.py b/sprito.py index 7173bf6..ffe6a37 100644 --- a/sprito.py +++ b/sprito.py @@ -69,8 +69,8 @@ C_BLUE = (0,0,255) C_YELLOW = (255,255,0) C_PURPLE = (255,0,255) C_CYAN = (0,255,255) -#standard pallet -PALLET = { +#standard pallets +PALLET_STR = { 'd': C_BLACK, 'w': C_WHITE, 'r': C_RED, @@ -80,3 +80,13 @@ PALLET = { 'p': C_PURPLE, 'c': C_CYAN } +PALLET_BYTE = { + 0x01: C_BLACK, + 0x02: C_WHITE, + 0x03: C_RED, + 0x04: C_GREEN, + 0x05: C_BLUE, + 0x06: C_YELLOW, + 0x07: C_PURPLE, + 0x08: C_CYAN +}