From 751a2ce6d3bc98e95de40cafcb48b7626e4aeeaf Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 22 Dec 2020 19:30:24 +0100 Subject: Use HSL colors Signed-off-by: Olivier Gayot --- cameltris.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'cameltris.py') diff --git a/cameltris.py b/cameltris.py index f130408..dc83ea8 100755 --- a/cameltris.py +++ b/cameltris.py @@ -75,7 +75,7 @@ class SquarePiece(Piece): def __init__(self): super().__init__() - self.square.fill(white) + self.square.fill(brown) self.elements = ((self.square, self.square), (self.square, self.square)) @@ -106,7 +106,7 @@ class LPiece(Piece): def __init__(self): super().__init__() - self.square.fill(blue) + self.square.fill(cyan) self.elements = (None, None, None), (self.square, self.square, self.square), (None, None, self.square) @@ -274,10 +274,12 @@ pygame.init() black = (0, 0, 0) white = (0xff, 0xff, 0xff) -blue = (0x10, 0x20, 0xbb) -green = (0x20, 0xbb, 0x10) -red = (0xbb, 0x10, 0x20) -yellow = (0xab, 0xd0, 0x20) +brown = (163, 75, 31) +blue = (30, 34, 164) +green = (30, 164, 59) +red = (164, 30, 30) +yellow = (164, 164, 30) +cyan = (30, 164, 150) square_template = pygame.Surface((48, 48)) -- cgit v1.2.3