![]() You can do this, by using a Screen object's screen property, which is either a PyGame Surface or a list of PsychoPy stimuli. If, however, you miss certain functionality, it is possibly to use PyGame or PsychoPy (depending on which DISPTYPE you use) to directly add stimuli to your Screen object. It is advised to do as much of the preparing of Screens during parts of your experiment where timing is not crucial, for example at the beginning of your experiment or at the beginning of a single trial.Ī Screen object has methods for directly drawing all sorts of stimuli, including rectangles, circles, text and images. I think the problem here is likely that in the py code, you’re using js syntax that py doesn’t know how to use:. You can use as many Screen objects as you want and doing so is generaly a Good Idea. Usually, you will want to use only one Display per experiment.Ī Screen object is used to prepare a stimulus display, without directly showing it. Calling the show method will refresh the monitor, using the current contents of the Display. Calling the fill method will change the contents of the Display. The Display object is used to directly communicate with the computer monitor. New glass can make a world of difference in the appearance of your car, not to mention that chips and scratches can impair your vision. The screen library is used to create Display and Screen objects, to communicate with a computer monitor and to prepare stimuli in the background. from psychopy import visual, logging, event, core create a window to draw in myWin visual.Window ( (600,600), allowGUIFalse, blendMode'add', useFBOTrue) (logging.DEBUG) INITIALISE SOME STIMULI grating1 visual.GratingStim (myWin,mask'gauss', color 1.0,1.0,1.0,contrast0.5, size (1.0,1. Replace your windshield for a complete restoration. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |