Graphics Reference
In-Depth Information
requestAnimationFrame(render);
}
There's more...
In this recipe, we've just used dat.gui to change the numeric values. The dat.gui
library also allows you to add controls for other types of values as follows:
• If the variable you add is a Boolean, a checkbox will be shown
• If the variable is a string, you can add an array of valid values
• If the variable is a color, you can use add color to create a color picker
• If the variable is a function, you get a button that fires the selected function
Besides this, you can add different kinds of event listeners to fire custom callbacks
when a value managed by dat.gui changes. For more information, see the
dat.gui
library
documentation
which
you
can
find
at
ht-
tp://workshop.chromeexperiments.com/examples/gui/#1--Basic-Usage .
Search WWH ::




Custom Search