How do I load and draw an image once as opposed to every frame to display it in every frame?

My problem is this: I want to display an image in my p5js sketch, but when I display it, it has to draw it every single frame, which can slow down the page. I want to be able to put my image on the canvas and leave it there until further notice, as opposed to drawing it in every frame. Kind of like a noLoop() until further notice.

Edit: I do want the sketch to keep looping, though, that's the thing.

Answers

Sign In or Register to comment.