GUI-DAT flag

gui-dat is a lightweight controller library for JavaScript. It allows you to easily manipulate variables and fire functions on the fly.

Basic Usage

<script type="text/javascript" src="gui.min.js"></script>
<script type="text/javascript">

window.onload = function() {

   var fizzyText = new FizzyText("gui-dat");

   var gui = new GUI();

   // Text field
   gui.add(fizzyText, "message");

   // Sliders with min and max
   gui.add(fizzyText, "maxSize", 0.5, 7);
   gui.add(fizzyText, "growthSpeed", 0.01, 1);
   gui.add(fizzyText, "speed", 0.1, 2);

   // Sliders with min, max and increment.
   gui.add(fizzyText, "noiseStrength", 10, 100, 5);

   // Boolean checkbox
   gui.add(fizzyText, "displayOutline");

   // Fires a function called "explode"
   gui.add(fizzyText, "explode").name("Explode!"); // Specify a custom name.

};

</script>
<<<<<<< HEAD