Description of the problem:
I designed a transparent rectangle with white lines as a cue when subjects select one of the stimuli on the screen. As the image below.
It works offline. But when I uploaded to pavlovia, some errors appeared.
“Unkonw name color”
But I have not set any color as 0.000,0.000,0.000. As the code in gitlab above. And I don’t know what is happening?
I think I found the bug. The Builder mode of Psychopy can recognize the ‘none’ as Fill Color. The rectangle with a ‘none’ color will be transparent. But It doesn’t seem to work for the JavaScript version of Psychopy. I change the fill color to white in .JS file and the experiment would be work. A white rectangle will replace the transparent rectangle which I expected.
Now, I use a transparent rectangle image(.png format, and set transparency=100%) to achieve the function I expected.
Thank you for your reply! I am still happy to know how to implement the functions inside Pavlovia. Or just don’t have the corresponding function yet.
I think I found the bug. The Builder mode of Psychopy can recognize the ‘none’ as Fill Color. The rectangle with a ‘none’ color will be transparent. But It doesn’t seem to work for the JavaScript version of Psychopy. I change the fill color to white in .JS file and the experiment would be work. A white rectangle will replace the transparent rectangle which I expected.
Now, I use a transparent rectangle image(.png format, and set transparency=100%) to achieve the function I expected.
Thank you for your reply! I am still happy to know how to implement the functions inside Pavlovia. Or just don’t have the corresponding function yet.
Do Fill with background colour and place above anything that should appear inside it. Alternatively, add polygon.setFillColor(undefined) to Begin Routine