mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
21 lines
554 B
JavaScript
21 lines
554 B
JavaScript
var object = {
|
|
"listen4Free": 25,
|
|
"step": 10,
|
|
"straddleZero": 0,
|
|
"maxIsNegative": -2,
|
|
};
|
|
|
|
// How do we kill polymer-ready ...
|
|
document.addEventListener( 'polymer-ready', function() {
|
|
|
|
var gui = new GUI();
|
|
gui.add( object, 'listen4Free' );
|
|
gui.add( object, 'listen4Free' );
|
|
gui.add( object, 'listen4Free' );
|
|
gui.add( object, 'listen4Free' ).name( 'customName' );
|
|
gui.add( object, 'step', 0, 50, 5 );
|
|
gui.add( object, 'straddleZero', -1, 1, 0.01 );
|
|
|
|
var c = gui.add( object, 'maxIsNegative', -5, -2 );
|
|
|
|
}); |