# duplicateDraw()

**URL:** <https://discourse.processing.org/t/duplicatedraw/2176>\
**Category:** Beginners\
**Created:** [July 29, 2018, 10:20am UTC](https://discourse.processing.org/t/duplicatedraw/2176 "2018-07-29T10:20:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![piscvau](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@piscvau](https://discourse.processing.org/u/piscvau)\
**Post date:** [July 29, 2018, 10:20am UTC](https://discourse.processing.org/t/duplicatedraw/2176/1 "2018-07-29T10:20:27Z")

</div>

Hello,  
I am trying to understand some processing 2 existing code. I run into  
duplicateDraw();  
This does not seem to appear in the reference. Can anyone help me figure out what it does?  
I thank you in advance  
piscvau

---

<div class="post-metadata">

**Author:** ![TheWizardBear](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/thewizardbear/32/3552_2.png) [@TheWizardBear](https://discourse.processing.org/u/TheWizardBear)\
**Post date:** [July 29, 2018, 3:27pm UTC](https://discourse.processing.org/t/duplicatedraw/2176/2 "2018-07-29T15:27:40Z")

</div>

Could you post the code, it might help.

---

<div class="post-metadata">

**Author:** ![piscvau](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@piscvau](https://discourse.processing.org/u/piscvau)\
**Post date:** [July 29, 2018, 5:19pm UTC](https://discourse.processing.org/t/duplicatedraw/2176/3 "2018-07-29T17:19:45Z")

</div>

Here is a partial copy of the code:  
void superbaReadPatternFromScreen(int offset) {  
// moveRowInGUI(); ??  
duplicateDraw();  
loadPixels();

myPattern = “”;  
…  
I doubt this might help. The complete code is available here: [https://github.com/knitty/gui](https://github.com/knitty/gui).  
The duplicateDraw() is in the tab kmsuperbasinger.  
I thank you very much for your help.  
piscvau

---

<div class="post-metadata">

**Author:** ![piscvau](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@piscvau](https://discourse.processing.org/u/piscvau)\
**Post date:** [July 29, 2018, 5:24pm UTC](https://discourse.processing.org/t/duplicatedraw/2176/4 "2018-07-29T17:24:11Z")

</div>

Found the solution. It is defined somewhere in the code in another tab!..

---

<div class="post-metadata">

**Author:** ![TheWizardBear](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/thewizardbear/32/3552_2.png) [@TheWizardBear](https://discourse.processing.org/u/TheWizardBear)\
**Post date:** [July 30, 2018, 4:32pm UTC](https://discourse.processing.org/t/duplicatedraw/2176/5 "2018-07-30T16:32:09Z")

</div>

😂 I had a feeling it might be that!

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [July 30, 2018, 5:49pm UTC](https://discourse.processing.org/t/duplicatedraw/2176/6 "2018-07-30T17:49:21Z")

</div>

Very descriptive function name but unfortunately it didn’t help at the end. Or maybe it did?

Please remember to format your code when posting in the forum. You should be able to find instructions on sticky tab in the main page. If not clear, please ask.

Kf
