Examples Create Graphics

Create Graphics

The createGraphics() function can be used to create a new p5.Graphics object, which can serve as an off-screen graphics buffer within the canvas. Off-screen buffers can have different dimensions and properties than their current display surface, even though they appear to be existing in the same space.

Contributors: Lauren McCarthy, Animesh Sinha, Aditya Siddheshwar, Katie, Caleb Foss, Kathryn Lichlyter

Modified from Create Graphics.

Originally ported from the Processing example Create Graphics.

Create Graphics is licensed under CC BY-NC-SA 4.0.