dots

 element objects

A static pattern of one or more dots. This uses Psychtoolbox Screen('DrawDots'), which draws dots that are limited in size. For larger circles, see element type circle.

(Transparency artifacts)

In the unusual case that you draw multiple dots in the same element and they overlap and have transparency, (property color below), you need to set backColor = <cds>"opaque"<cds> for accurate display (okay if there is nothing for the element to occlude).

▸ 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
Record properties
dots
elements (see below)

positions
size
color
type

All visual elements
position
depth

nn_eyes
rotation
flipHorz
flipVert

colorMask
alpha
intensity
contrastMult
convolution
shader
filterOrder
filterGrayscale
filterResolutionMult
filterGamma

channelResolution
backColor
addDisplay

All visual elements
position

All adjuster elements have
adjust

All elements
start
end

startBuffer
endBuffer

vary
staircase

All objects
report
info

positions

Default: one dot at element position

A 2-column matrix setting dot centers, with rows corresponding to dots and columns to [x y] coordinates (deg). + = right⁠/⁠down and positions are relative to element position, which you can set in position (default relative to screen center). If dots overlap then they are layered front to back in the order you specify them. If you show multiple dots then for each of the properties below you can set one value for all of them, or different values for different dots using a vector or matrix (see property).

size

Default: 0.2 deg

A number setting dot diameter (deg). Or a 1×n vector for different diameters for different dots.

color

Default: white

A 1×3 RGB vector with numbers between 0–1 setting dot color. You can also use a 1×4 RGBA vector to give the dots transparency. Or an n×3/4 matrix for different colors/transparencies for different dots.

type

Default: 2 -> circles, prioritizing speed

A number corresponding to Psychtoolbox Screen('DrawDots') input dot_type, setting dot shape and draw method. Note that Psychtoolbox values are between 0–4 but this property is between 1–5.

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

position
nn_eyes
rotation
colorMask
alpha
intensity
contrastMult
drawCodeVars

(None)

(None)

Input properties
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.

dots
elements (see below)

All elements
startTime
endTime
duration
n_startFrame
n_endFrame
startLatencyBufferable
endLatencyBufferable