An image stimulus displays an image
{
"type": "image",
"content": "image1.jpg"
}
"image"
{
"type": "image",
"content": "image1.jpg"
}
true
or false
false
{
"type": "image",
"content": "fixation_cross.png",
"barrier": true,
"duration": 1
}
In trials using the above stimulus code, the image "fixation_cross.png" will be displayed before other stimuli and responses are displayed.
0
(no delay){
"type": "image",
"content": "image1.jpg",
"delay": 1.6
}
The above code introduces a delay of 1600 milliseconds.
1.3
)-1
, meaning that the stimulus, once triggered, will stay on a trial indefinitely{
"type": "image",
"content": "image1.jpg",
"duration": 2.4
}
The above code renders the image stimulus visible for 2400 milliseconds after the onset of the stimulus. Make sure you intend to specify the duration for the stimulus rather than the more common duration of a trial!
"image0":{
"type": "image",
"content": "image0.jpg",
"delay": 0.3,
"width": "200px"
}
"image1": {
"type": "image",
"content": "image1.jpg",
"parent": "image0",
"width": "400px"
}
Here, the image1 stimulus inherits the delay property of image0. image1 does not inherit the width property of image0 because the stimulus definition of image1 has its own specified width property.
"50%"
), pixels (e.g., "200px"
), and other CSS width control units are supported.{
"type": "image",
"content": "image1.jpg",
"width": "200px"
}