Esempio n. 1
0
def draw_error(win, nframes, fixation_color):
    for frameN in range(int(nframes)):
        error = visual.TextStim(win,
                                color=fixation_color,
                                text='+',
                                opacity=float((frameN % 8) >= 4))
        error.draw()
        win.flip()
        check_abort(event.getKeys())
Esempio n. 2
0
def draw_stim(win, stim, nframes):
    for frameN in range(int(nframes)):
        stim.draw()
        win.flip()
        check_abort(event.getKeys())