# p5Gui and noLoop()

**URL:** https://discourse.processing.org/t/p5gui-and-noloop/34903
**Category:** Libraries
**Created:** [January 31, 2022, 12:32am UTC](https://discourse.processing.org/t/p5gui-and-noloop/34903 "2022-01-31T00:32:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![goldorak](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@goldorak](https://discourse.processing.org/u/goldorak)
#### Post date: [January 31, 2022, 12:32am UTC](https://discourse.processing.org/t/p5gui-and-noloop/34903/1 "2022-01-31T00:32:29Z")

</div>

Hello,  
I’m experimenting with p5Gui library.  
I’m trying to understand this example: [p5.gui/sketch.js at master · bitcraftlab/p5.gui · GitHub](https://github.com/bitcraftlab/p5.gui/blob/master/examples/pacman/sketch.js)

I would like to create a drop down menu for experimenting with blend modes and update my canvas in realtime.

I can display the gui just fine and select my different blend modes but as I use noLoop() each time I pick a new value for my blendmode it doesn’t update its value unless I comment the noLoop().

Is there a way to update a variable value each time I use the GUI while not having noLoop() commented?

Thanks
