We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So I was fiddling around with p5 (which seems fantastic, mind you) and happened to lack a proper gui implementation. I checkout out the external p5 gui, which seems to be a quicksettings wrapper. It uses html-elements, which is fine. However, I wanted to see a gui as part of the canvas itself.
After a few hours I suddenly had something that seems to work fine, despite being limited to a simple textbox with a "close dialogue" button. (and custom buttons) Not sure if this will help anyone, but I decided to post the code here.
Note: instance mode: "var gp5 = new p5(something)"
http://paste.ideaslabs.com/show/GRfE7tsC3k
Edit: Just realized: You need to call Gui.draw(); in your p5 draw function
Comments
here are some additional relevant posts that I have seen before:
https://forum.processing.org/two/discussion/12532/windowjs-cross-mode-alert-confirm-prompt-other-js-api-for-java
https://github.com/bitcraftlab/p5.gui
https://workshop.chromeexperiments.com/examples/gui/#1--Basic-Usage
Kf