Thanks…
If i use addObject it doesnt work…
https://editor.p5js.org/egutie9/sketches/DW2XivdQd
Also to finish two questions:
1 - Is there a way to put for example drawfill and drawstroke as radio button, you can choose one or another, but only one of them…
2 - A a comment here is the few code that resets canvas with p.clear() as mentioned in other post, if it was a good practice in order to freeing memory and avoid possible performance falls, and maintain the memory and cache clean.
3 - Also seem keyPressed doesnt work…in theory if you press p, it should show,/hide the gui…
Thanks for your work and effort