A rectangular, elliptical, or Gaussian aperture. By default this is a transparent hole in a solid surround, where the surround is the trial background color and fills the experiment window. The hole is centered at element position which you can set in property position (default window center). Generally place a mask element on top of other elements—the easiest way to do this is to set property layer = <cd>-1<cd> for the mask (or more generally just layer for the mask < layer for the element(s) it is occluding, with default layer = 0).
If an element can end on its own, you don't need to set end conditions for it in property end (unless you want it to maybe end earlier).
No—runs until a condition you set in property end.
You can vary or allow the subject to adjust the following input properties of an object of this type in real time when it's running. If you need to make other properties adjustable, you can edit the element type code—see Element Type Programming Manual.
A string <cds>"rectangle"<cds>, <cds>"circle"<cds>, or <cds>"gaussian"<cds> setting shape of the aperture.
Default: 4.5 deg
Size of the transparent aperture for a rectangular or circular mask (deg). This is a number that is square side length or circle diameter. Or a vector [width height] for a rectangle or ellipse.
Default: 0.75 deg
Standard deviation of the transparent aperture for a Gaussian mask (deg). Or a vector <cd>[s_x s_y]<cd> for an asymmetric Gaussian.
Default: fill experiment window
Size of the solid surround part of the mask (deg). Generally this just needs to be big enough that the element(s) to occlude are fully occluded. Typically you can just leave it at default <cd><cd> = fill the experiment window regardless of mask position or rotation. If you set it, it can be a number that is side length for a square, or a vector [width height] for a rectangle (deg).
Default: same as trial background color
A 1×3 RGB vector with numbers between 0–1 that is surround color. <cd><cd> = same as trial background color, which you can set in trial object backColor (default black).
PsychBench uses record properties to record information during experiments. You can't set record properties but you can see them in experiment results by listing them input property report.