March 2015
Beginner to intermediate
422 pages
9h 9m
English
A couple of employees from Google created a library called dat.GUI (you can find the documentation online at http://code.google.com/p/dat-gui/), which allows you to very easily create a simple user interface component that can change variables in your code. In this last part of this chapter, we'll use dat.GUI to add a user interface to our example that allows us to change the following:
Just like we had to do for the statistics, we first add this library to the <head> element of our HTML page, as follows:
<script src="../libs/dat.gui.js"></script>
The next thing we need to configure is a JavaScript object that will hold the properties ...
Read now
Unlock full access