Advertisement
MagicWinnie

Untitled

Feb 22nd, 2022
1,099
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. # coding:utf-8
  2.  
  3. import time
  4. from psychopy import visual, event
  5.  
  6. win = visual.Window(size=(600, 600))
  7.  
  8. rectStim = visual.rect.Rect(
  9.     win,
  10.     units="pix",
  11.     width=100,
  12.     height=100,
  13.     fillColor=[1, -1, -1]
  14. )
  15. rectStim.draw()
  16. win.flip()
  17. time.sleep(2)
  18.  
  19. textStim = visual.TextStim(
  20.     win,
  21.     text='сепулька',
  22.     color=[1, -1, -1]
  23. )
  24. textStim.draw()
  25. win.flip()
  26.  
  27. event.waitKeys()
  28.  
  29. imStim = visual.ImageStim(
  30.     win,
  31.     image='theCat.jpg',
  32.     ori=45,
  33. )
  34. imStim.size *= 0.26
  35. imStim.draw()
  36. win.flip()
  37.  
  38. event.waitKeys(keyList=['d'])
  39.  
  40. win.close()
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement