From d93adcf5630c1e5178397e9b0dd835b7139a522d Mon Sep 17 00:00:00 2001 From: George Michael Brower Date: Mon, 18 Apr 2011 19:47:05 -0700 Subject: [PATCH] I hereby issue a worldwide challenge to find *anything* wrong with these Number Controllers. They may the best ever. --- index.html | 96 +++++++++++++++++---------------- src/DAT/GUI/Controller.js | 1 + src/DAT/GUI/ControllerNumber.js | 13 ++--- src/DAT/GUI/ControllerString.js | 5 ++ src/DAT/GUI/GUI.js | 17 +++--- 5 files changed, 73 insertions(+), 59 deletions(-) diff --git a/index.html b/index.html index b0b5b98..39a9c1f 100644 --- a/index.html +++ b/index.html @@ -33,11 +33,12 @@ var fizzyText = new FizzyText("dat.gui"); var gui = new DAT.GUI(); + // Text field gui.add(fizzyText, "message"); // Sliders with min + max - gui.add(fizzyText, "maxSize"); + gui.add(fizzyText, "maxSize").min(0.5).max(7); gui.add(fizzyText, "growthSpeed").min(0.01).max(1).step(0.05); gui.add(fizzyText, "speed", 0.1, 2, 0.05); // shorthand for min/max/step @@ -185,61 +186,62 @@ window.onload = function() { alert("You changed me to " + n); });--> - - + + + + + + + +