psychopy.visual
- many visual stimuli¶
Window
to display all stimuli below.
Windows and and display devices:
Window
is the main class to display objectsWarper
for non-flat projection screensProjectorFramePacker
for handling displays with ‘structured light mode’ to achieve high frameratesRift
for Oculus Rift support (Windows 64bit only)VisualSystemHD
for NordicNeuralLab’s VisualSystemHD in-scanner display.
Commonly used:
ImageStim
to show imagesTextStim
to show textTextBox2
rewrite of TextStim (faster, editable with more layout options and formatting)
Shapes (all special classes of ShapeStim
):
ShapeStim
to draw shapes with arbitrary numbers of verticesRect
to show rectanglesCircle
to show circlesPolygon
to show polygonsLine
to show a linePie
to show wedges and semi-circles
Images and patterns:
SimpleImageStim
to show images without bells and whistlesGratingStim
to show gratingsRadialStim
to show annulus, a rotating wedge, a checkerboard etcNoiseStim
to show filtered noise patterns of various formsEnvelopeGrating
to generate second-order stimuli (gratings that can have a carrier and envelope)
Multiple stimuli:
ElementArrayStim
to show many stimuli of the same typeDotStim
to show and control movement of dots
3D shapes, materials, and lighting:
LightSource
to define a light source in a sceneSceneSkybox
to render a background skybox for VR and 3D scenesBlinnPhongMaterial
to specify a material using the Blinn-Phong lighting modelSphereStim
to show a 3D sphereBoxStim
to show 3D boxes and cubesPlaneStim
to show 3D planeObjMeshStim
to show Wavefront OBJ meshes loaded from files
Other stimuli:
MovieStim
to show moviesVlcMovieStim
to show movies using VLCSlider
a new improved class to collect ratingsRatingScale
to collect ratingsCustomMouse
to change the cursor in windows with GUI. OBS: will be deprecated soon
Meta stimuli (stimuli that operate on other stimuli):
BufferImageStim
to make a faster-to-show “screenshot” of other stimuliAperture
to restrict visibility area of other stimuli
Helper functions:
filters
for creating grating textures and Gaussian masks etc.visualhelperfunctions
for tests about whether one stimulus contains anotherunittools
to convert deg<->radiansmonitorunittools
to convert cm<->pix<->deg etc.colorspacetools
to convert between supported color spacesviewtools
to work with view projectionsmathtools
to work with vectors, quaternions, and matricesgltools
to work with OpenGL directly (under development)