A tokenized-image stimulus is similar to the tokenized text stimulus, except that the token is an image instead of a text segment. A tokenized-image stimulus is primarily intended for creating GIF-like stimuli with precise timing control of each token (i.e., “frame”). At the time being, only automated presentation is supported.
["a.jpg", "b.jpg", "c.jpg"]
){
"type": "tokenized_image",
"content": ["a.jpg", "b.jpg", "c.jpg"]
}
type
must be specified as tokenized_image
.{
"type": "tokenized_image",
"content": ["a.jpg", "b.jpg", "c.jpg"]
}
true
, then all subsequent stimuli and responses will not be displayed until this tokenized image stimulus displays all its images.true
or false
true
{
"type": "tokenized_image",
"content": ["a.jpg”, "b.jpg", "c.jpg"],
"barrier": false
}
In trials using the above stimulus code, other stimuli and responses will be displayed at the same time as the tokenized image.
{
"type": "tokenized_image",
"content": ["a.jpg”, "b.jpg", "c.jpg"],
"barrier": true
}
In trials using the above stimulus code, the tokenized image will play before other stimuli and responses are displayed. This code is equivalent to code where the barrier property is not specified.
"plain"
(a sequence of images unfolding from left to right) or "singleton"
(i.e., GIF-like stimulus)singleton
{
"type": "tokenized_image",
"content": ["a.jpg”, "b.jpg", "c.jpg"],
"mode": "singleton"
}
2
) to be displayed, or a list of values specifying the duration of each token (i.e., [1, 2, 3]
).{
"type": "tokenized_image",
"content": ["a.jpg”, "b.jpg", "c.jpg"],
"self_paced": false,
"token_duration": 2 // or [1, 2, 3]
}
In this sample code, a new token will be displayed every 2 seconds.
"50%"
), pixels (e.g., "200px"
), and other CSS width control units are supported.{
"type": "tokenized_image",
"content": ["a.jpg”, "b.jpg", "c.jpg"],
"width": "200px"
}
"50%"
), pixels (e.g., "200px"
), and other CSS width control units are supported.{
"type": "tokenized_image",
"content": ["a.jpg”, "b.jpg", "c.jpg"],
"height": "200px"
}
"mode"
is "singleton"
).true
or false
false
{
"type": "tokenized_image",
"content": ["a.jpg”, "b.jpg", "c.jpg"],
"mode": "singleton",
"keep_last": true
}