psychopy.org | Reference | Downloads | Github

Brush tool drawing persists beyond its duration

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2020.1
Standard Standalone? (y/n) If not then what?: y

What are you trying to achieve?:
Tried out the Brush tool for a freehand drawing. The brush component set to a duration of 4seconds, lets me draw freely for 4 seconds. But the screen does not clear up after the 4 seconds. The drawing persists as a background even after the routine ends and through the next routine.

What did you try to make it work?:
I tried adding statements like win.flip(), brush.setAutoDraw (false) and win.clearBuffer(color=True) to the EndRoutine tab of a code component in that routine, as well as in the BeginRoutine tab of the next routine. It did not change the outcome. Drawing stays in the background.

I had the same problem, but resolved it by adding a simple line of code at the end of routine:
yourbrushname.reset()