diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-12-22 19:30:24 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-12-22 20:10:31 +0100 |
commit | 751a2ce6d3bc98e95de40cafcb48b7626e4aeeaf (patch) | |
tree | 4184f392bb643c3fbe62f7fc9cff50f68ef700cd | |
parent | 9d8db92ea74cccf4b9b3a595a8debe2bb99e667b (diff) |
Use HSL colors
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rwxr-xr-x | cameltris.py | 14 |
1 files changed, 8 insertions, 6 deletions
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)) |