This shows you the differences between two versions of the page.
mgl:taskreferenceoverview [2013/10/24 16:27] |
mgl:taskreferenceoverview [2015/01/28 17:32] |
||
---|---|---|---|
Line 149: | Line 149: | ||
</code> | </code> | ||
- | What it does is it looks in the "thistrial" structure for what segment we are on, if we are not in segment one (i.e. the intertrial interval) it sets the motion coherence to 0, otherwise it sets it to whatever the parameter coherence is set to (defined in the task.parameter.coherence field). It also sets the direction of motion of the dots. | + | What it does is it looks in the "thistrial" structure for what segment we are on, if we are in segment one (the stimulus segment), it sets it to whatever the parameter coherence is set to (defined in the task.parameter.coherence field). Otherwise, we are in segment two (the intertrial interval), so we set coherence to 0 (random movement). It also sets the direction of motion of the dots. |
The second (and most important) callback is the one used to draw the stimulus to the screen: | The second (and most important) callback is the one used to draw the stimulus to the screen: |