Hello, 1st method: My code to draw 3 circles is like below:
circle1.draw() circle2.draw() circle3.draw() circle4.draw() win.flip()
2nd method: However, I want to be able to draw all of them at once like below but it gives an error:
stim=[circle1,circle2,circle3,circle] stim.draw() win.flip()
Is there a way to implement the second method?
Hello, Try the following:
stim=[circle1,circle2,circle3,circle] for circle in stim: circle.draw() win.flip()
Chen
Your solution is technically the same as your first method – just with more elegant coding. They appear on screen at the same time when flip is called so there’s no need to try to “draw” them simultaneously (which I think would be impossible).