This component can be used to filter the visual display, as if the subject is looking at it through an opening (i.e. add an image component, as the background image, then add an aperture to show part of the image). Currently, in builder, only circular apertures are supported (you can change the shape by specifying your aperture in a code component- we are hoping to make it easier to do this through builder soon!). Moreover, only one aperture is enabled at a time. You can’t “double up”: a second aperture takes precedence. Currently this component does not run online (see the status of online options, but you can achieve something similar online using an image with a mask: see an example demo here with corresponding PsychoPy experiment files here or by using the MouseView plugin.
Everything in a PsychoPy® experiment needs a unique name. The name should contain only letters, numbers and underscores (no punctuation marks or spaces).
The time that the aperture should start having its effect. See Defining the onset/duration of components for details.
If you are using frames to control timing of your stimuli, you can add an expected start time to display the component timeline in the routine.
When the aperture stops having its effect. See Defining the onset/duration of components for details.
If you are using frames to control timing of your stimuli, you can add an expected duration to display the component timeline in the routine.
How should the stimulus be laid out? Padding, margins, size, position, etc.
The size controls how big the aperture will be, in pixels, default = 120
The position of the centre of the aperture, in the units specified by the stimulus or window.
Top tip: You can make an aperture (or anything!) track the position of your mouse by adding a mouse component, then setting the position of your aperture to be
mouse.getPos() (and set every frame), where “mouse” corresponds to the name of your mouse component.
What units to use.
API reference for