A text stimulus displays a block of text.
type
must be specified as "text"
.{
"type": "text",
"content": "The text in these quotation marks will be displayed."
}
<abbr>
, <acronym>
, <b>
, <blockquote>
, <code>
, <em>
, <i>
, <li>
, <ol>
, <strong>
, <ul>
, <p>
.{
"type": "text",
"content": "The text in these quotation marks will be displayed."
}
"left"
, "right"
and "center"
"left"
{
"type": "text",
"content": "The text in these quotation marks will be displayed.",
"alignment": "right"
}
true
or false
false
{
"type": "text",
"content": "This is a text sample",
"barrier": false // the default; safe to omit
}
In trials using the above stimulus code, other stimuli and responses will be displayed at the same time as the text is displayed. This is the default, and you can omit the last line to achieve the same effect.
{
"type": "text",
"content": "This is a text sample",
"barrier": true,
"duration": 10
}
In trials using the above stimulus code, the text will be displayed for 10 seconds before other stimuli and responses are displayed.
"red"
, "darkgreen"
, or hex codes like "#FF6600"
"black"
{
"type": "text",
"content": "The text in these quotation marks will be displayed.",
"color": "#FF6600"
}
0
(no delay){
"type": "text",
"content": "The text in these quotation marks will be displayed.",
"delay": 1.2
}
The above code introduces a delay of 1200 milliseconds.
-1
, meaning that the stimulus, once triggered, will stay on a trial indefinitely{
"type": "text",
"content": "The text in these quotation marks will be displayed.",
"duration": 3
}
The above code renders the text stimulus visible for 3000 milliseconds after the onset of the stimulus.
"text0":{
"type": "text",
"content": "The text in these quotation marks will be displayed.",
"size": "30px",
"alignment": "center",
"color": "blue"
}
"text1": {
"type": "text",
"content": "text1 inherits properties from text0.",
"parent": "text0",
"color": "red"
}
Here, the text1 stimulus inherits the size and alignment properties of text0. text1 does not inherit the color property of text0 because the stimulus definition of text1 has its own specified color property.
true
, this disables copying-and-pasting behavior at a system level - not only will right-clicking the text stimulus not bring up a menu, but Ctrl/Command + C keyboard shortcuts will not work either.true
, false
false
{
"type": "text",
"content": "The text in these quotation marks will be displayed.",
"prevent_copy": true
}
"px"
, "em"
, or "rem"
, or 2) a percentage of the default size{
"type": "text",
"content": "The text in these quotation marks will be displayed.",
"size": "50%"
}