Hero image

Rotating Sqaures

What the code does

Animates three different coloured rotating squares using basic OpenGL commands. OpenGL underlies the presentation of visual stimuli in PTB and there are a number of ways in which to directly access OpenGL functionality. This is one of the great powers of PTB.

Visualisation

The code

Instagram image Instagram image Instagram image Instagram image Instagram image Instagram image