In this video, I cover createGraphics() in p5.js in order to demonstrate how to draw some shapes with trails and some without. In this Tutorial you will learn the basics of HTML in combination with CSS and the DOM using p5.JS. This would provide a quite stable solution, and the possibility of further development. In the question "What are the best JavaScript drawing libraries?"

So the message by default is "p5xjs" but you can change it you will however need to click on the button regenerate to call the getPoints() function again to re-generate the path and our array of polygons. In this case I would have to integrate dat.GUI with p5.js. p5.js is ranked 5th while Shield UI … More info about this tool and videos showing how to use it can be found here .

The most straight forward method to implement some kind of controls in p5.js is to use a simple third party library, like the one I used in my projects (dat.GUI.js). It's possible to optionally specify the p5 version to use in your widget via the data-p5-version attribute: