tidy up example

This commit is contained in:
Jeff Nusz 2016-09-23 12:43:24 -07:00
parent 838e5b946f
commit 1586566774

View File

@ -16,7 +16,7 @@
noiseStrength: 10.2, noiseStrength: 10.2,
growthSpeed: 0.2, growthSpeed: 0.2,
type: 'chrome', type: 'three',
explode: function () { explode: function () {
alert('Bang!'); alert('Bang!');
@ -40,7 +40,7 @@
gui.add(obj, 'height').step(5); // Increment amount gui.add(obj, 'height').step(5); // Increment amount
// Choose from accepted values // Choose from accepted values
gui.add(obj, 'type', [ 'pizza', 'chrome', 'hooray' ] ); gui.add(obj, 'type', [ 'one', 'two', 'three' ] );
// Choose from named values // Choose from named values
gui.add(obj, 'speed', { Stopped: 0, Slow: 0.1, Fast: 5 } ); gui.add(obj, 'speed', { Stopped: 0, Slow: 0.1, Fast: 5 } );