psychopy.visual - many visual stimuli¶
Window to display all stimuli below.
Windows and and display devices:
Windowis the main class to display objectsWarperfor non-flat projection screensProjectorFramePackerfor handling displays with ‘structured light mode’ to achieve high frameratesRiftfor Oculus Rift support (Windows 64bit only)VisualSystemHDfor NordicNeuralLab’s VisualSystemHD in-scanner display.
Commonly used:
ImageStimto show imagesTextStimto show textTextBox2rewrite of TextStim (faster, editable with more layout options and formatting)
Shapes (all special classes of ShapeStim):
ShapeStimto draw shapes with arbitrary numbers of verticesRectto show rectanglesCircleto show circlesPolygonto show polygonsLineto show a linePieto show wedges and semi-circles
Images and patterns:
SimpleImageStimto show images without bells and whistlesGratingStimto show gratingsRadialStimto show annulus, a rotating wedge, a checkerboard etcNoiseStimto show filtered noise patterns of various formsEnvelopeGratingto generate second-order stimuli (gratings that can have a carrier and envelope)
Multiple stimuli:
ElementArrayStimto show many stimuli of the same typeDotStimto show and control movement of dots
3D shapes, materials, and lighting:
LightSourceto define a light source in a sceneSceneSkyboxto render a background skybox for VR and 3D scenesBlinnPhongMaterialto specify a material using the Blinn-Phong lighting modelSphereStimto show a 3D sphereBoxStimto show 3D boxes and cubesPlaneStimto show 3D planeObjMeshStimto show Wavefront OBJ meshes loaded from files
Other stimuli:
MovieStimto show moviesVlcMovieStimto show movies using VLCSlidera new improved class to collect ratingsRatingScaleto collect ratingsCustomMouseto change the cursor in windows with GUI. OBS: will be deprecated soon
Meta stimuli (stimuli that operate on other stimuli):
BufferImageStimto make a faster-to-show “screenshot” of other stimuliApertureto restrict visibility area of other stimuli
Helper functions:
filtersfor creating grating textures and Gaussian masks etc.visualhelperfunctionsfor tests about whether one stimulus contains anotherunittoolsto convert deg<->radiansmonitorunittoolsto convert cm<->pix<->deg etc.colorspacetoolsto convert between supported color spacesviewtoolsto work with view projectionsmathtoolsto work with vectors, quaternions, and matricesgltoolsto work with OpenGL directly (under development)