showImage

Builds a trial with a onscreen message and optional photodiode box
Source:
Parameters:
Name Type Description
config Object The configuration object for USE_PHOTODIODE, USE_EEG, USE_ELECTRON and USE_MTURK flags.
Name Type Description
USE_PHOTODIODE boolean USE_PHOTODIODE flag
USE_EEG boolean USE_EEG flag
USE_ELECTRON boolean USE_ELECTRON flag
USE_MTURK boolean USE_MTURK flag
image string The path of the image file to be displayed.
options Object
Name Type Description
duration number trial duration in milliseconds jittered with the jitter param. (default: 1000)
jitter number jitter range (0-jitter) to add from to the trial duration (default: 50)
imageHeight number Set the height of the image in pixels. (default: 600)
imageWidth number Set the width of the image in pixels. (default: 600)
taskCode number Task code to be saved into data log (default: 1)
numBlinks number Number of times the pulse needs to be repeated for photodiode box, when USE_PHOTODIODE is set true. (default: 1)