mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Restored default step
This commit is contained in:
parent
dad826da29
commit
8174d3e69c
@ -6,8 +6,8 @@ function FizzyText(message) {
|
||||
// Notice they're all defined with "this". That makes them public.
|
||||
// Otherwise, gui-dat can't see them.
|
||||
|
||||
this.growthSpeed = 0.5; // how fast do particles change size?
|
||||
this.maxSize = 3.2; // how big can they get?
|
||||
this.growthSpeed = 0.2; // how fast do particles change size?
|
||||
this.maxSize = 5.59; // how big can they get?
|
||||
this.noiseStrength = 10; // how turbulent is the flow?
|
||||
this.speed = 0.4; // how fast do particles move?
|
||||
this.displayOutline = false; // should we draw the message as a stroke?
|
||||
|
@ -80,7 +80,15 @@ DAT.GUI.ControllerNumber = function() {
|
||||
};
|
||||
|
||||
this.getStep = function() {
|
||||
return step || 1;
|
||||
if (step == undefined) {
|
||||
if (max != undefined && min != undefined) {
|
||||
return (max-min)/100;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
return step;
|
||||
}
|
||||
}
|
||||
|
||||
var numberField = document.createElement('input');
|
||||
|
Loading…
Reference in New Issue
Block a user