I would like to create a button using dat.gui library. In a perfect world, this would work like this:
gui.add("button", "click me");
A lightweight graphical user interface for changing variables in JavaScript.
This creates a button with text left aligned.
var obj = { add:function(){ console.log("clicked") }}; gui.add(obj,'add');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With