Skip to content

Other Visual Content in Trials

Experiments

Alongside stimuli and response widgets, Testable supports additional visual elements that appear within a trial: fixation points, overlay text, trial counters, background colors, and cursor customisation.

Display a + symbol on screen at a specific moment using the fixation column:

ValueWhen the fixation cross is shown
ISIDuring the inter-stimulus interval
ITIDuring the inter-trial interval
withStimAt the same time as the stimulus
allTrialThroughout the entire trial
allStimDuring all stimulus display periods

Combine period keywords, and control the size, with semicolon-separated tokens (no spaces around the semicolons; keywords are case-sensitive):

fixation = ISI;32
fixation = withStim;150%

A plain integer token sets the cross’s font size in pixels. A percentage token maps 100% to a 2em cross (so 150% gives 3em); with no size token at all, the cross simply inherits the page font size.

Show arbitrary text at a specific moment using the trialText column:

trialText = Remember to respond as fast as possible!

Use {} to define multiple text items on the same trial:

trialText = {First item}{Second item}
ValueTiming
ITIDuring the inter-trial interval
ISIDuring the inter-stimulus interval
firstStimWith the first stimulus
lastStimWith the last stimulus
afterStimAfter stimuli are removed
allTrialThroughout the trial
allStimDuring all stimulus periods
withStimAlongside the stimulus
withResponseWhile the response widget is active
ValuePosition
aboveAbove the stimulus
belowBelow the stimulus
centerCentred on screen
NpxN pixels from the top of the stimulus area

Set counterTrial = 1 to show a “Trial x of y” counter to participants during that trial. Only rows with this column set display the counter.

Put any non-empty value (for example 1) in the counterPart column on an instructions row to show a “Part i of n” progress label on that screen. Every marked instructions row counts as one part; n is the total number of marked rows, and parts are numbered in the order the participant actually encounters them, after randomisation. Values on non-instructions rows are ignored.

Use it to label the instructions screen that opens each block of a multi-block experiment (“Part 1 of 3”, “Part 2 of 3”, …).

Display a countdown timer in the top-right corner of the screen:

timer = 10000

This shows a timer counting down from 10 seconds. The value is in milliseconds.

All color columns accept HEX codes (e.g. #293D7A) or CSS color names (e.g. red, blue).

ColumnEffect
bgColorOverride the default background color from Setup for this trial
backgroundSame as bgColor, but also accepts an image filename (e.g. background.jpg) to set a background image
textColorOverride the default text color from Setup for this trial
colorColor applied to fixation cross, feedback text, trial text, and word stimuli

The color column applies to fixation, feedback, trial text, and word stimuli by default. You can selectively target individual elements:

color = red
color = fixation: red
color = fixation: stim1: blue
  • color = red: changes color of all supported elements
  • color = fixation: red: only changes the fixation cross to red
  • color = fixation: stim1: blue: changes the fixation cross and the word stimulus in stim1 to blue

Display persistent text in the top-left or top-right corners of the screen:

topLeft = Condition A
topRight = Block 1

These stay visible regardless of what else is happening on screen.

ValueCursor behaviour
(blank)Default cursor
hideHide cursor for the entire trial
hideStartHide cursor from trial start until first interaction
crosshairShow crosshair cursor
pointerShow pointer cursor