psychopy.visual
- many visual stimuli¶Window
to display all stimuli below.
Windows and and display devices:
Window
is the main class to display objects
Warper
for non-flat projection screens
ProjectorFramePacker
for handling displays with ‘structured light mode’ to achieve high framerates
Rift
for Oculus Rift support (Windows 64bit only)
VisualSystemHD
for NordicNeuralLab’s VisualSystemHD in-scanner display.
Commonly used:
ImageStim
to show images
TextStim
to show text
TextBox2
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 vertices
Rect
to show rectangles
Circle
to show circles
Polygon
to show polygons
Line
to show a line
Pie
to show wedges and semi-circles
Images and patterns:
SimpleImageStim
to show images without bells and whistles
GratingStim
to show gratings
RadialStim
to show annulus, a rotating wedge, a checkerboard etc
NoiseStim
to show filtered noise patterns of various forms
EnvelopeGrating
to generate second-order stimuli (gratings that can have a carrier and envelope)
Multiple stimuli:
ElementArrayStim
to show many stimuli of the same type
DotStim
to show and control movement of dots
3D shapes, materials, and lighting:
LightSource
to define a light source in a scene
SceneSkybox
to render a background skybox for VR and 3D scenes
BlinnPhongMaterial
to specify a material using the Blinn-Phong lighting model
RigidBodyPose
to define poses of objects in 3D space
BoundingBox
to define bounding boxes around 3D objects
SphereStim
to show a 3D sphere
BoxStim
to show 3D boxes and cubes
PlaneStim
to show 3D plane
ObjMeshStim
to show Wavefront OBJ meshes loaded from files
Other stimuli:
MovieStim
to show movies
VlcMovieStim
to show movies using VLC
Slider
a new improved class to collect ratings
RatingScale
to collect ratings
CustomMouse
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 stimuli
Aperture
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 another
unittools
to convert deg<->radians
monitorunittools
to convert cm<->pix<->deg etc.
colorspacetools
to convert between supported color spaces
viewtools
to work with view projections
mathtools
to work with vectors, quaternions, and matrices
gltools
to work with OpenGL directly (under development)