In this video, I discuss the p5.js function createGraphics(). createGraphics() creates a 2D graphics “context” (also sometimes called “buffer”) that you can use as an “offscreen canvas.”

createGraphics() as WebGL Texture:

Support this channel on Patreon:
To buy Coding Train merchandise:
To Support the Processing Foundation:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
p5.js reference:

Source Code for the all Video Lessons:


For an Intro to Programming using p5.js:
For Coding Challenges: