psychopy.org | Reference | Downloads | Github

Drawing response - how to build

Hey everyone,

I’m fairly new to PsychoPy and Python and I’m currently building an experiment. It consists on presenting several incomplete images, and having the participants completing them by drawing over these images. I’m having trouble with this last part.
So far, I’ve been able to build the stimulus so it displays the images properly, in a randomized way - they are displayed a total of 12s, with a response allowed for the last 10s. I’ve seen plenty of posts about drawing for stimuli, but almost none regarding receiving drawing as a response.
Does anyone have any references regarding allowing a series of lines drawn with a mouse or digital sketch pad (preferably) as a response? Also, it is important that these lines are able to be created on top of the stimulus.

Thanks in advance,
Jo

Hi, look into the shapes.py demos from the Demo menu in the Coder view to give you a start into how you can manipulate the vertices of shape stimuli. Meanwhile, the mouse.py demo shows how you can control stimulus locations with a mouse.

Mash up the two and you might get what you need?

1 Like