Gloo#

More example scripts are available in the VisPy repository’s example scripts directory.

Show an Image

Show an Image

Show an Image
Animate an Image

Animate an Image

Animate an Image
Animate a Shape

Animate a Shape

Animate a Shape
Show a rotating colored cube

Show a rotating colored cube

Show a rotating colored cube
Draw many colored cubes using instanced rendering

Draw many colored cubes using instanced rendering

Draw many colored cubes using instanced rendering
Show color quad Image

Show color quad Image

Show color quad Image
Draw a bunch of lines

Draw a bunch of lines

Draw a bunch of lines
Draw 2D points

Draw 2D points

Draw 2D points
Draw a Quad

Draw a Quad

Draw a Quad
Animate a 2D function

Animate a 2D function

Animate a 2D function
Use FrameBuffers

Use FrameBuffers

Use FrameBuffers
Show a rotating cube with lighting

Show a rotating cube with lighting

Show a rotating cube with lighting
Use multiple textures

Use multiple textures

Use multiple textures
Show a rotating cube with an outline

Show a rotating cube with an outline

Show a rotating cube with an outline
Show post-processing using a FrameBuffer

Show post-processing using a FrameBuffer

Show post-processing using a FrameBuffer
Draw 3D rotating Cube

Draw 3D rotating Cube

Draw 3D rotating Cube
Rotating Quad

Rotating Quad

Rotating Quad
Spatial Filtering

Spatial Filtering

Spatial Filtering
Simplest Possible Script

Simplest Possible Script

Simplest Possible Script
Simplest Shader Program

Simplest Shader Program

Simplest Shader Program
Example using texture internalformat for higher precision

Example using texture internalformat for higher precision

Example using texture internalformat for higher precision
Show a rotating textured cube

Show a rotating textured cube

Show a rotating textured cube
Show a textured quad

Show a textured quad

Show a textured quad

The low-level GL module#

Vispy has a low-level gl module which wraps GL calls almost to a 1-to-1 ratio. While this is intended mostly for internal use, it is possible to use this to construct programs.

Drawing a rotated 3D cube

Drawing a rotated 3D cube

Drawing a rotated 3D cube
Example demonstrating simulation of fireworks using point sprites

Example demonstrating simulation of fireworks using point sprites

Example demonstrating simulation of fireworks using point sprites
Drawing a simple quad

Drawing a simple quad

Drawing a simple quad
Displaying quads using Instanced rendering

Displaying quads using Instanced rendering

Displaying quads using Instanced rendering

Gallery generated by Sphinx-Gallery