Hide an ImageStim

Hi everyone,

I am developing an experiment where in a trial I want to hide an ImageStim at the beginning and display it again only when participants make a correct response. However, I didn’t find a way to simply hide the image. Anyone have a clue how can I implement it in the code? Many thanks for your help in advance!

Hi @sean0820, an easy option would be to change the size of the image. You could make the size of the image equal to zero to hide it, and set the size on your condition@

# Begin Routine
image.size = (0, 0)

# Each Frame
if condition == True:
    image.size = (.5, .5)