Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding:utf-8
- import time
- from psychopy import visual, event
- win = visual.Window(size=(600, 600))
- rectStim = visual.rect.Rect(
- win,
- units="pix",
- width=100,
- height=100,
- fillColor=[1, -1, -1]
- )
- rectStim.draw()
- win.flip()
- time.sleep(2)
- textStim = visual.TextStim(
- win,
- text='сепулька',
- color=[1, -1, -1]
- )
- textStim.draw()
- win.flip()
- event.waitKeys()
- imStim = visual.ImageStim(
- win,
- image='theCat.jpg',
- ori=45,
- )
- imStim.size *= 0.26
- imStim.draw()
- win.flip()
- event.waitKeys(keyList=['d'])
- win.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement