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:

3D shapes, materials, and lighting:

Other stimuli:

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)


Back to top