Draw 1 frame only

i just want to draw one picture, no animation.
is this possible?

2 Likes

Hi dislo,

It is possible.
Just put all your code in the setup() function and nothing in the draw() one :slight_smile:

2 Likes

You can also call the noLoop() function to only call draw() once instead of 60 times per second.

More info here: https://p5js.org/reference/#/p5/noLoop

3 Likes

cool. thanks for the fast answers.

1 Like