# Progress bar from inside draw()

**URL:** https://discourse.processing.org/t/progress-bar-from-inside-draw/12091
**Category:** Coding Questions
**Created:** [June 16, 2019, 9:14am UTC](https://discourse.processing.org/t/progress-bar-from-inside-draw/12091 "2019-06-16T09:14:40Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [June 17, 2019, 3:32am UTC](https://discourse.processing.org/t/progress-bar-from-inside-draw/12091/7 "2019-06-17T03:32:17Z")

</div>

The example sketch “Threaded PGraphics II” from [2nd link](https://discourse.processing.org/t/problems-when-trying-to-draw-to-a-p3d-pgraphics-when-called-from-a-thread/6301/4) is for when we need to use an OpenGL PGraphics in another Thread.

If you don’t need an OpenGL PGraphics, go w/ the example sketch “Linked Balls” from the 1st link:

- [Forum.Processing.org/two/discussion/5886/multithreading-madness#Item\_17](http://Forum.Processing.org/two/discussion/5886/multithreading-madness#Item_17)

Or go w/ “Threaded PGraphics” from this link:

- [Forum.Processing.org/two/discussion/25799/how-to-draw-a-rect-in-a-thread#Item\_2](http://Forum.Processing.org/two/discussion/25799/how-to-draw-a-rect-in-a-thread#Item_2)

---

_[View the full topic](https://discourse.processing.org/t/progress-bar-from-inside-draw/12091)._
