psychopy.org | Reference | Downloads | Github

Slide a visual object across screen smoothly

I would like to slide an object (visual.Polygon) from position A (defined by pos) to position B, over 4 seconds. Any suggestions on how I might be able to achieve that?

In Each Frame

if t<4:
      polygon.setPos([(B-A)/4+A,0])
1 Like