psychopy/psychopy — pull request #162 by alexholcombe (2012-06-19 21:13:50+00:00)
Title: wrapping of moving dots implemented for both square and circle(ellipse) fieldshape

To test it yourself, in the dots.py demo simply set dotLife=-1.
I don't think I nested the helper functions with correct style. I'm
sure there are also some other style violations due to my ignorance.
It wraps points one by one rather than being vectorized, so there must
be a speed penalty. I don't know that it can be vectorized. If it
can't and the speed penalty is judged significant, then we might need
to add a boolean parameter to dotStim to deactivate wrapping. However
it seems to work fast enough in my (limited) testing.

Only visual.py has been affected. I think data.py might also have sneaked into the commit, please ignore, that was an accident sorry.