summaryrefslogtreecommitdiff
path: root/host/simu/robots
diff options
context:
space:
mode:
authorJulien Balleyguier2012-05-07 19:46:54 +0200
committerJulien Balleyguier2012-05-07 19:46:54 +0200
commitf26792a79a27a9018978c49d673a731f28b357e1 (patch)
tree162301e0f1d0fe2b745f6e00813d61c74c10fa22 /host/simu/robots
parent509a3a0063a590e273cbe333e5c738149387ec0e (diff)
host/simu/robots/guybrush/view/clamps.py: changing the color of clamp 1
Diffstat (limited to 'host/simu/robots')
-rw-r--r--host/simu/robots/guybrush/view/clamps.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/simu/robots/guybrush/view/clamps.py b/host/simu/robots/guybrush/view/clamps.py
index 9ac082d7..73980cf4 100644
--- a/host/simu/robots/guybrush/view/clamps.py
+++ b/host/simu/robots/guybrush/view/clamps.py
@@ -73,10 +73,11 @@ class ClampsSide (Drawable):
self.draw_polygon ((6, -45), (28, 45), (-6, 45), (-28, -45),
outline = BLACK, fill = GREY)
for i in (0, 1):
+ color=['RED','BLACK']
c = self.model.lower_clamp_clamping[i]
if c is not None:
self.draw_line ((7, -45), (7, -46 - c * 33),
- (-28, -46 - c * 33))
+ (-28, -46 - c * 33), fill=color[i])
if self.model.lower_clamp_content[i]:
e, y = self.model.lower_clamp_content[i][0]
self.draw_rectangle ((7, -45 - c * 15),