From e5ab3b9e67eeee0e048dc9ed0ae389d2ebe9ca55 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 28 Mar 2012 23:04:10 +0200 Subject: host/simu/robots/guybrush: draw guybrush outline --- host/simu/robots/guybrush/view/robot.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'host/simu/robots/guybrush/view') diff --git a/host/simu/robots/guybrush/view/robot.py b/host/simu/robots/guybrush/view/robot.py index 52f4d509..fcf375cb 100644 --- a/host/simu/robots/guybrush/view/robot.py +++ b/host/simu/robots/guybrush/view/robot.py @@ -49,17 +49,9 @@ class Robot (simu.inter.drawable.Drawable): self.trans_translate (self.pos) self.trans_rotate (self.angle) # Draw robot body. - self.draw_polygon ((0, 190), (150, 110), (95, 95), (55, 55), - (40, -0), (55, -55), (95, -95), (150, -110), (0, -190), - (-150, -110), (-95, -95), (-55, -55), (-40, -0), - (-55, 55), (-95, 95), (-150, 110), (0, 190), + self.draw_polygon ((150, 171.5), (-80, 171.5), (-130, 121.5), + (-130, -121.5), (-80, -171.5), (150, -171.5), fill = COLOR_ROBOT) - self.draw_arc ((0, 0), 190, start = pi * 35 / 180, - extent = pi * 110 / 180, style = 'chord', - outline = COLOR_ROBOT, fill = COLOR_ROBOT) - self.draw_arc ((0, 0), 190, start = pi + pi * 35 / 180, - extent = pi * 110 / 180, style = 'chord', - outline = COLOR_ROBOT, fill = COLOR_ROBOT) # Draw Robot axis. self.draw_line ((-50, 0), (50, 0), fill = COLOR_AXES, arrow = 'last') -- cgit v1.2.3