mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
tidy up example
This commit is contained in:
parent
838e5b946f
commit
1586566774
@ -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 } );
|
||||||
|
Loading…
Reference in New Issue
Block a user