The most common way to present visual stimuli is using the sketchpad item, or, for non-time-critical stimuli, the feedback item.
Using the sketchpad and feedback items
The sketchpad and feedback item offer basic what-you-see-is-what-you get drawing tools (Figure 1).
The difference between sketchpad and feedback items
The sketchpad and feedback items are identical in most ways, except for two important differences.
Sketchpad items are prepared in advance, feedback items are not
The contents of a sketchpad are prepared during the prepare phase of the sequence that it is part of. This is necessary to ensure accurate timing: It allows the sketchpad to be shown right away during the run phase, without any delays due to stimulus preparation. However, the downside of this is that the contents of a sketchpad cannot depend on what happens during the sequence that it is part of. For example, you cannot use a sketchpad to provide immediate feedback on the response time collected by a keyboard_response item (assuming that the sketchpad and keyboard_response are part of the same sequence.)
In contrast, the contents of a feedback item are only prepared when they are actually shown, that is, during the run phase of the sequence that it is part of. This makes it possible to provide feedback on things that just happened--hence the name. However, the feedback item should not be used to present time-critical stimuli, because it suffers from delays due to stimulus preparation.
For more information about the prepare-run strategy, see:
Feedback variables are (by default) reset by feedback items
The feedback item has an option 'Reset feedback variables'. When this option is enabled (it is by default), feedback variables are reset when the feedback item is shown.
For more information about feedback variables, see:
Presenting visual stimuli in Python
You can use the
canvas object to present visual stimuli in Python: