Hero image

Partial Window

What the code does

This demo demostrates how to create a PTB window which covers only part of the screen. This is useful if you are developing code on a single monitor setup as it means if your code crashes, you are not stuck with a full PTB window covering your whole screen. You can put the window wherever you like on your screen. It will behave like any normal window. So in this instance it will close when any keyboard button is pressed. This route should only be used for developing and debugging code, not for experiments, as it results in poor timing fidelity.

Visualisation

The code

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