mask

 elements

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 depth = <cd>+1<cd> for the element(s) to occlude and leave it at default 0 for the mask (more generally depth for the mask < depth for the other elements).

▸ Object ends on its own?

"Ends on its own" means ends automatically at that point. 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 any condition you set in property end.

Input properties

Adjustable properties

You can vary or allow the subject to adjust the following properties of an object of this type when it's running. If you need to make other properties adjustable, you can edit the element type code—see Element Type Programming Manual.

Adjustable properties

Adjustable properties

nn_eyes
rotation
colorMask
alpha
intensity
contrastMult

position
nn_eyes
rotation
colorMask
alpha
intensity
contrastMult
drawCodeVars

(None)

(None)

shape

Default: rectangle

A string <cds>"rectangle"<cds>, <cds>"circle"<cds>, or <cds>"gaussian"<cds> setting shape of the aperture.

size

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.

sigma

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.

backSize

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).

color

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).

Input properties all visual elements have

position

Input properties all adjuster elements have

adjust

Input properties all objects have

report
info

Record properties

PsychBench uses record properties to record information during experiments. You can't set record properties but you can see them in experiment results using input property report.