Skip to main content

StimulusComponent

Stimuli can comprise multiple components. This table describes each component of a stimulus.

Key

FieldTypeRequirementDescription
stimulus_idrequiredA reference to the primary key id of the Stimulus table.
indexindexrequiredA 1-based index indicating the stacking order of stimulus components. A stimulus component with a higher index is displayed on top of those with lower values, similar to CSS z-index property.

Where

FieldTypeRequirementDescription
x_screenintegeroptionalX coordinates of the stimulus component relative to the left edge of the screen in pixels.
y_screenintegeroptionalY coordinates of the stimulus component relative to the top edge of the screen in pixels.
x_viewportfloatoptionalX coordinates of the stimulus component relative to the left edge of the screen expressed as a fraction of the screen width.
y_viewportfloatoptionalY coordinates of the stimulus component relative to the top edge of the screen expressed as a fraction of the screen height.

What

FieldTypeRequirementDescription
descriptionstringrequiredA human readable, compact description of the component.
symbol_namestringoptionalThe human-readable name of the displayed symbol.
symbol_countintegeroptionalThe number of symbols represented in this component.
symbol_layoutenumoptionalHow the symbols are laid out.
color_namestringoptionalThe human-readable name of the component color, e.g., red.
color_hexstringoptionalThe hexadecimal RGB color code of the component (e.g., #FF0000 for red) with optional alpha channel for transparency.
orientationenumoptionalIndicates the symbol orientation.