# Draw 1 frame only

**URL:** https://discourse.processing.org/t/draw-1-frame-only/3206
**Category:** Beginners
**Created:** [September 2, 2018, 9:00pm UTC](https://discourse.processing.org/t/draw-1-frame-only/3206 "2018-09-02T21:00:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dislo](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@dislo](https://discourse.processing.org/u/dislo)
#### Post date: [September 2, 2018, 9:00pm UTC](https://discourse.processing.org/t/draw-1-frame-only/3206/1 "2018-09-02T21:00:44Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)
#### Post date: [September 2, 2018, 9:02pm UTC](https://discourse.processing.org/t/draw-1-frame-only/3206/2 "2018-09-02T21:02:05Z")

</div>

Hi dislo,

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

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [September 2, 2018, 9:02pm UTC](https://discourse.processing.org/t/draw-1-frame-only/3206/3 "2018-09-02T21:02:47Z")

</div>

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](https://p5js.org/reference/#/p5/noLoop)

---

<div class="post-metadata">

### Author: ![dislo](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@dislo](https://discourse.processing.org/u/dislo)
#### Post date: [September 2, 2018, 9:05pm UTC](https://discourse.processing.org/t/draw-1-frame-only/3206/4 "2018-09-02T21:05:31Z")

</div>

cool. thanks for the fast answers.
