summaryrefslogtreecommitdiffhomepage
path: root/host
diff options
context:
space:
mode:
authorNicolas Schodet2008-04-04 13:02:42 +0200
committerNicolas Schodet2008-04-04 13:02:42 +0200
commit19c735ed14a22f0d295505a2aceb4ab545cadd51 (patch)
treeb3dddb4f5bf382fc1e1c306d19eed1391f116ec7 /host
parentbf768e5a0b44c0ea607f8590df74ae56c3d0d4d0 (diff)
* host/inter:
- added axes.
Diffstat (limited to 'host')
-rw-r--r--host/inter/inter.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/host/inter/inter.py b/host/inter/inter.py
index 93281981..52104f0b 100644
--- a/host/inter/inter.py
+++ b/host/inter/inter.py
@@ -13,13 +13,13 @@ class Robot (Drawable):
self.draw_polygon ((115, 30), (170, 85), (150, 127), (130, 145),
(-25, 200), (-70, 200), (-70, -200), (-25, -200),
(130, -145), (150, -127), (170, -85), (115, -30))
- axes = dict (fill = '#404040')
- self.draw_line ((-70, 0), (170, 0), **axes)
+ axes_fill = '#404040'
+ self.draw_line ((-70, 0), (170, 0), fill = axes_fill, arrow = LAST)
f = 142 + 2 * 31.5 - 13.5
wr = 63 / 2
- self.draw_line ((0, +f / 2), (0, -f / 2), **axes)
- self.draw_line ((-wr, f / 2), (+wr, f / 2), **axes)
- self.draw_line ((-wr, -f / 2), (+wr, -f / 2), **axes)
+ self.draw_line ((0, +f / 2), (0, -f / 2), fill = axes_fill)
+ self.draw_line ((-wr, f / 2), (+wr, f / 2), fill = axes_fill)
+ self.draw_line ((-wr, -f / 2), (+wr, -f / 2), fill = axes_fill)
class Table (Drawable):
"""The table and its elements."""
@@ -35,6 +35,8 @@ class Table (Drawable):
self.draw_rectangle ((0, 2100 - 500), (500, 2100), fill = '#201fff')
self.draw_rectangle ((3000 - 500, 2100 - 500), (3000, 2100), fill = '#ff1f1f')
self.draw_line ((3000 / 2, -22 - 80), (3000 / 2, 2100 + 22))
+ # Axes.
+ self.draw_line ((0, 200), (0, 0), (200, 0), arrow = BOTH)
# Beacons and baskets.
self.draw_rectangle ((-22, 2100), (-22 - 80, 2100 + 80), fill = '#5b5b5d')
self.draw_rectangle ((-22, 1050 - 40), (-22 - 80, 1050 + 40), fill = '#5b5b5d')