StencilBits ( int) – Back buffer stencil bits. If drawing 3D stimuli to minimize artifacts such a ‘Z-fighting’. Behaviour mayīe undefined for non-fullscreen windows, or if multiple screens areĪttached with varying color output depths.ĭepthBits ( int) – Back buffer depth bits. Is assumed the display has 8-bits per color (8, 8, 8). Is set to use and the system graphics configuration. Valid valuesĭepend on the output color depth of the display (screen) the window Ignore, neither an error nor a warning are raised.īpc ( array_like or int) – Bits per color (BPC) for the back buffer as a tuple to specifyīit depths for each color channel separately (red, green, blue), orĪ single value to set all of them to the same value. GammaErrorPolicy ( str) – If raise, an error is raised if the gamma table is unable to be Will give the actual size of the screen in Retina pixels. Units='pix' should refer to the tiny Retina pixels. Request will be in the larger pixels but subsequent use of NB when you use Retina display the initial win size (or Apple) no longer allows us to create a non-retina display. UseRetina ( bool) – In PsychoPy >1.85.3 this should always be True as pyglet The text which appears on the title sash. Title ( str) – Name of the Window according to your Operating System. You can switch between left and right-eye Stereo ( bool) – If True and your graphics card supports quad buffers then Newer hardware, will crash if number is invalid. Samples is determined by GL_MAX_SAMPLES, usually 16 or 32 on Image quality, but can delay frame flipping. NumSamples ( int) – A single value specifying the number of samples per pixel if This setting cannotīe changed after opening a window. Multiple color samples will be taken per-pixel, providing anĪnti-aliased image through spatial filtering. MultiSample ( bool) – If True and your graphics driver supports multisample buffers, EstimatedĪllowStencil ( bool) – When set to True, this allows operations that use the OpenGL Use BitsSharp class from pycrsltdĬheckTiming ( bool) – Whether to calculate frame duration on initialization. WaitBlanking ( bool or None) – After a call to flip() should we wait for theīitsMode ( bool) – DEPRECATED in 1.80.02. ViewOri ( float) – A single value determining the orientation of the view in degrees. Values outside the borders will be clamped to lie on ViewPos ( array-like of float or None) – If not None, redefines the origin within the window, in the units ViewScale ( array-like of float or None) – Scaling factors to apply custom scaling to the current units Screen ( int) – Specifies the physical screen that stimuli will appear on (‘pyglet’Īnd ‘glfw’ winType only). Units ( str or None) – Defines the default units of stimuli drawn in the window (can be Monitor ( Monitor or None) – The monitor to be used during the experiment. WinType ( str or None) – Set the window type or back-end to use. To close etc., use None for value from preferences. Better timing can be achievedĪllowGUI ( bool or None) – If set to False, window will be drawn with no frame and no buttons Each gun canįullscr ( bool or None) – Create a window in ‘full-screen’ mode. Ĭolor ( array-like of float) – Color of background as list or single value. Pos ( array-like of int) – Location of the top-left corner of the window on the screen. Size ( array-like of int) – Size of the window in pixels. See further downįor a list of attributes which can be changed after initialization These attributes can only be set at initialization. Project (we won’t be fixing pygame-specific bugs). Pygame may still work for you but it’s officially deprecated in this The GLFW backend is a new addition which provides most of the same featuresĪs pyglet, but provides greater flexibility for complex display To specify which screen to use (if more than one is available, duh!) and The pyglet backend allows multiple windows to be created, allows the user Used to set up a context in which to draw objects, Window ( size = (800, 600), pos = None, color = (0, 0, 0), colorSpace = 'rgb', backgroundImage = None, backgroundFit = 'cover', rgb = None, dkl = None, lms = None, fullscr = None, allowGUI = None, monitor = None, bitsMode = None, winType = None, units = None, gamma = None, blendMode = 'avg', screen = 0, viewScale = None, viewPos = None, viewOri = 0.0, waitBlanking = True, allowStencil = False, multiSample = False, numSamples = 2, stereo = False, name = 'window1', title = 'PsychoPy', checkTiming = True, useFBO = False, useRetina = True, autoLog = True, gammaErrorPolicy = 'raise', bpc = (8, 8, 8), depthBits = 8, stencilBits = 8, backendConf = None ) ¶ A class representing a window for displaying one or more stimuli.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |