Skip to content

Commit

Permalink
Lighter grey colour for grid lines #1
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoskaragiannakis committed Aug 23, 2015
1 parent e6afb88 commit 2b17170
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
'blue': (0, 0, 255),
'white': (255, 255, 255),
'green': (0, 255, 0),
'black': (0, 0, 0)}
'black': (0, 0, 0),
'grey': (180, 180, 180)}
IMAGE = {'red': pg.image.load("images/red.png"),
'blue': pg.image.load("images/blue.png"),
'empty': pg.image.load("images/empty.png")}
Expand Down Expand Up @@ -132,7 +133,7 @@ def draw(self):
pos = [54, 54]
for _ in range(7):
pg.draw.line(self.screen,
COLOUR['black'],
COLOUR['grey'],
(pos[0], pos[1]),
(pos[0], pos[1]+520),
2)
Expand All @@ -142,7 +143,7 @@ def draw(self):
pos = [54, 54]
for _ in range(7):
pg.draw.line(self.screen,
COLOUR['black'],
COLOUR['grey'],
(pos[0], pos[1]),
(pos[0]+520, pos[1]),
2)
Expand All @@ -154,7 +155,7 @@ def draw(self):
for _ in range(6):
pg.draw.line(
self.screen,
COLOUR['black'],
COLOUR['grey'],
(pos[0], pos[1]),
(pos[0]+diag_len, pos[1]+diag_len),
2)
Expand All @@ -167,7 +168,7 @@ def draw(self):
for _ in range(6):
pg.draw.line(
self.screen,
COLOUR['black'],
COLOUR['grey'],
(pos[0], pos[1]),
(pos[0]+diag_len, pos[1]+diag_len),
2)
Expand All @@ -181,7 +182,7 @@ def draw(self):
for _ in range(6):
pg.draw.line(
self.screen,
COLOUR['black'],
COLOUR['grey'],
(pos[0], pos[1]),
(pos[0]+diag_len, pos[1]-diag_len),
2)
Expand All @@ -194,7 +195,7 @@ def draw(self):
for _ in range(6):
pg.draw.line(
self.screen,
COLOUR['black'],
COLOUR['grey'],
(pos[0], pos[1]),
(pos[0]-diag_len, pos[1]+diag_len),
2)
Expand Down

0 comments on commit 2b17170

Please sign in to comment.