line

 element objects

One or more lines.

▸ 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
line
elements (see below)

points
width
color

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
info
report

points

Default: horizontal line 10 deg long

A 1×4 vector <cd>[x1 y1 x2 y2]<cd> setting line start and end points (deg). + = right⁠/⁠down and positions are relative to element position, which you can set in position (default relative to screen center).

Or if you want to show multiple lines at the same time, use an n×4 matrix with rows corresponding to lines. This is more efficient than using multiple line elements. Lines are also layered front to back in the order you specify them. If you show multiple lines then for each of the properties below you can set one value for all of them, or different values for different lines using a vector or matrix (see property).

width

Default: 0.075 deg

A number setting line width (deg). Or a 1×n vector for different widths for different lines.

color

Default: white

A 1×3 RGB vector with numbers between 0–1. Or an n×3 matrix for different colors for different lines.

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.

line
elements (see below)

All elements
startTime
endTime
duration
n_startFrame
n_endFrame
startLatencyBufferable
endLatencyBufferable