Restrict a stimulus visibility area to a basic shape (circle, square, triangle)
When enabled, any drawing commands will only operate on pixels within the Aperture. Once disabled, subsequent draw operations affect the whole screen as usual.
See demos/stimuli/aperture.py for example usage
| Author : | 2011, Yuri Spitsyn 2011, Jon Peirce added units options, Jeremy Gray added shape & orientation |
|---|
Disable the Aperture. Any subsequent drawing operations will not be affected by the aperture until re-enabled.
Enable the aperture so that it is used in future drawing operations
NB. The Aperture is enabled by default, when created.
Set the pos (centre) of the Aperture
Set the size (diameter) of the Aperture