I’m new to Psychopy coder and I need some help.
I’d like to create a stimulus like this example here:
Basically it’s a central field full of dots moving in circles at a slow speed, and a peripheral field of dots moving in circles at a fast speed.
I have been trying my best using the ‘dotStim’ object but it has the following limitations:
The dots move in a straight line or a random walk, not in a nice circle
The dots in the central field are ‘cut’ when they reach the edge of the central field - in the example they never reach the edge of the central field and thus do not get cut.
Can anyone give me tips/suggestions on which elements to use and how to set them up for a stimulus that is more like the example?
The code I made using dotStim is nothing like the example, so I don’t think it’s worth posting here. (Unless dotStim can indeed be used to create a stimulus like the example video I posted?)
I suspect I may need to use an elementArray to achieve a stimulus like the video, but I can only figure out how to draw the stimulus and then move it as a whole on a loop, rather than each element in the array moving along a vector and having a different starting point like the video.
Here’s my very rough start at that:
This code just crudely loops the array along a vertical line - to move them in circles I would write a more complex xy position vector, and to slow the speed I could duplicate each entry in that vector. But this is not what I want! I need each dot in the array to start at a different point in that vector like the example video.
Am I on the right track or should I try a different direction to achieve this?