![]() You can switch between left and right-eye scenes for drawing operations using If True and your graphics card supports quad buffers then this will be enabled. (notably, allowing the class:`~` to be used). When set to True, this allows operations that use the OpenGL stencil buffer 'fast' updates every frame by drawing a hidden line on the top of the screen. Overrides monitor settingsīitsMode : None, 'fast', ('slow' mode is deprecated).ĭefines how (and if) the Bits++ box will be used. Monitor gamma for linearisation (will use Bits++ if possible). If not None, redefines the origin for the windowĪ single value determining the orientation of the view in degsĪfter a call to flip() should we wait for the blank before the script continues Specifies the physical screen that stimuli will appear on (pyglet winType only)Ĭan be used to apply a custom scaling to the current units of the :class:`~`. Screen : *0*, 1 (or higher if you have many screens) See :ref:`units` for explanation of options. Units : *None*, 'height' (of the window), 'norm' (normalised),'deg','cm','pix'ĭefines the default units of stimuli drawn in the window (can be overridden by each stimulus) The monitor to be used during the experiment If None then PsychoPy will revert to user/site preferences If set to False, window will be drawn with no frame and no buttons to close etc. ![]() Each gun can take values betweeen -1 and 1īetter timing can be achieved in full-screen modeĪllowGUI : *None*, True or False (if None prefs are used) ![]() Pygame is used for all sound production and for monitoring the joystick.Ĭolor of background as list or single value. Pygame has fewer bells and whistles, but does seem a little faster in text rendering. Which screen to use (if more than one is available, duh!) and allows movies to be The pyglet backend allows multiple windows to be created, allows the user to specify Using either PyGame (python's SDL binding) or pyglet. """Used to set up a context in which to draw objects, visualOpenWindows = openWindows # can provide a default window for mouse #keep track of windows that have been opened #import OpenGL.GL.EXT.framebuffer_object as FB #actually FBO isn't working yet so disable #import pyglet.gl, pyglet.window, pyglet.image, pyglet.font, pyglet.event #shaders will work but require OpenGL2.0 drivers AND PyOpenG元.0+ ReportNDroppedFrames = 5 #stop raising warning after this Library (before anything that uses scipy) and make sure that avbin is installed.""") Try importing psychopy.visual as the first #misc must only be imported *after* event or MovieStim breaks on win32 (JWP has no idea why!) Import psychopy #so we can get the _path_įrom psychopy import core, platform_specific, logging, prefs, monitors, event HaveAvbin = False #either avbin isn't installed or scipy.stats has been imported (prevents avbin loading) #make sure we also check in SysWOW64 if on 64-bit windows #on windows try to load avbin now (other libs can interfere) # by the pyglet GL engine and have no effect. # other calls to pyglet or pyglet submodules, otherwise it may not get picked up # Ensure setting pyglet.options to False is done prior to any # Distributed under the terms of the GNU General Public License (GPL). """To control the screen and visual stimuli for experiments
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |