Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/elements/elements.py
diff options
context:
space:
mode:
Diffstat (limited to 'elements/elements.py')
-rw-r--r--elements/elements.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/elements/elements.py b/elements/elements.py
index 398c484..1e821b3 100644
--- a/elements/elements.py
+++ b/elements/elements.py
@@ -240,7 +240,6 @@ class Elements:
""" Transfers a coordinate from the screen to the world coordinate system (pixels)
- Change to the right axis orientation
- Include the offset: screen -- world coordinate system
- - Include the scale factor (Screen coordinate system might have a scale factor)
"""
dx, dy = self.screen_offset_pixel
@@ -362,9 +361,9 @@ class Elements:
p1 = joint.GetAnchor2()
p1 = self.to_screen((p1.x*self.ppm, p1.y*self.ppm))
- if p1 == p2:
- self.renderer.draw_circle((255,255,255), p1, 2, 0)
- else:
+ if p1 == p2: # Fixation
+ self.renderer.draw_circle((255,0,0), p1, 4, 0)
+ else: # Object to object joint
self.renderer.draw_lines((0,0,0), False, [p1, p2], 3)
joint = joint.GetNext()