What the code does
This demo shows how to produce a basic "Bubbles" stimulus. We load the standard PTB konijntjes image into a texture and then view it through a mask consisting of an opaque grey layer punctuated by Gaussian apertures through which the konijntjes image can be seen. You can easily explore all the components of the stimulus e.g. try drawing only the original Gaussian mask over the image.