Restored default step

This commit is contained in:
George Michael Brower 2011-04-19 21:16:37 -07:00
parent dad826da29
commit 8174d3e69c
2 changed files with 11 additions and 3 deletions

View File

@ -6,8 +6,8 @@ function FizzyText(message) {
// Notice they're all defined with "this". That makes them public. // Notice they're all defined with "this". That makes them public.
// Otherwise, gui-dat can't see them. // Otherwise, gui-dat can't see them.
this.growthSpeed = 0.5; // how fast do particles change size? this.growthSpeed = 0.2; // how fast do particles change size?
this.maxSize = 3.2; // how big can they get? this.maxSize = 5.59; // how big can they get?
this.noiseStrength = 10; // how turbulent is the flow? this.noiseStrength = 10; // how turbulent is the flow?
this.speed = 0.4; // how fast do particles move? this.speed = 0.4; // how fast do particles move?
this.displayOutline = false; // should we draw the message as a stroke? this.displayOutline = false; // should we draw the message as a stroke?

View File

@ -80,7 +80,15 @@ DAT.GUI.ControllerNumber = function() {
}; };
this.getStep = 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'); var numberField = document.createElement('input');