2011-01-31 04:53:33 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<title>gui-dat</title>
|
|
|
|
<link rel="icon" type="image/png" href="demo/assets/favicon.png" />
|
|
|
|
<link href="demo/demo.css" media="screen" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="gui.css" media="screen" rel="stylesheet" type="text/css" />
|
2011-02-12 01:01:02 +00:00
|
|
|
<script type="text/javascript" src="gui.js"></script>
|
|
|
|
<script type="text/javascript" src="controllers/slider.js"></script>
|
|
|
|
<script type="text/javascript" src="controllers/controller.js"></script>
|
|
|
|
<script type="text/javascript" src="controllers/controller.boolean.js"></script>
|
|
|
|
<script type="text/javascript" src="controllers/controller.function.js"></script>
|
|
|
|
<script type="text/javascript" src="controllers/controller.number.js"></script>
|
|
|
|
<script type="text/javascript" src="controllers/controller.string.js"></script>
|
|
|
|
<script type="text/javascript" src="time/scrubber.js"></script>
|
|
|
|
<script type="text/javascript" src="time/timer.js"></script>
|
|
|
|
<script type="text/javascript" src="demo/improvedNoise.js"></script>
|
|
|
|
<script type="text/javascript" src="demo/prettify.js"></script>
|
|
|
|
<script type="text/javascript" src="demo/demo.js"></script>
|
2011-01-31 04:53:33 +00:00
|
|
|
<script type="text/javascript">
|
2011-01-31 20:21:14 +00:00
|
|
|
//<![CDATA[
|
2011-02-08 15:40:38 +00:00
|
|
|
var timer;
|
2011-01-31 04:53:33 +00:00
|
|
|
window.onload = function() {
|
2011-02-12 01:01:02 +00:00
|
|
|
|
2011-02-13 17:23:10 +00:00
|
|
|
GUI.loadJSON({"guis":[{"open":true,"width":280,"openHeight":287,"scroll":1,"values":["over time",1.35,8.955,0.9833,1.254,10,false,null,0],"timer":{"windowMin":1687.2598554396586,"windowWidth":11596,"playhead":6413.8663,"snapIncrement":250,"useSnap":false,"scrubbers":[{"points":[{"value":"","time":-961.1787},{"value":"gui-dat","time":197.8981},{"value":"over time","time":5000}]},{"points":[{"value":1.3499999999999999,"time":644.1387}]},{"points":[{"value":0.5,"time":72.8056,"tween":"CircularEaseOut"},{"value":7,"time":659.1556},{"value":7,"time":2211.2348},{"value":5.525,"time":4992.5319},{"value":8.955,"time":6413.8663}]},{"points":[{"value":0.5049,"time":-532.8902,"tween":"Hold"},{"value":0.5544,"time":1666.4321},{"value":0.01,"time":3382.0743,"tween":"Hold"},{"value":0.01,"time":4969.9097},{"value":1,"time":6393.5388}]},{"points":[{"value":0.39899999999999997,"time":1652.5592,"tween":"QuarticEaseIn"},{"value":1.254,"time":3471.5432}]},{"points":[{"value":10,"time":795.5192,"tween":"Hold"},{"value":10,"time":5000}]},{"points":[]},{"points":[]},{"points":[{"value":0,"time":250,"tween":"Hold"}]}]}},{"open":true,"width":280,"openHeight":127,"scroll":0,"values":[null,false,250,null]}]});
|
2011-01-31 04:53:33 +00:00
|
|
|
var fizzyText = new FizzyText("gui-dat");
|
2011-02-11 22:54:39 +00:00
|
|
|
|
2011-01-31 04:53:33 +00:00
|
|
|
var gui = new GUI();
|
2011-02-08 20:56:00 +00:00
|
|
|
|
2011-02-13 17:23:10 +00:00
|
|
|
var timerControls = new GUI();
|
|
|
|
|
|
|
|
timer = new GUI.Timer(gui);
|
2011-01-31 04:53:33 +00:00
|
|
|
|
2011-02-02 18:12:55 +00:00
|
|
|
// Text field
|
2011-02-12 01:01:02 +00:00
|
|
|
gui.add(fizzyText, "message");
|
2011-02-02 18:12:55 +00:00
|
|
|
|
2011-02-13 17:23:10 +00:00
|
|
|
gui.add(fizzyText, "scale", 0.25, 4);
|
|
|
|
|
2011-01-31 04:53:33 +00:00
|
|
|
// Sliders with min and max
|
2011-02-03 00:01:12 +00:00
|
|
|
gui.add(fizzyText, "maxSize", 0.5, 7);
|
|
|
|
gui.add(fizzyText, "growthSpeed", 0.01, 1);
|
2011-02-03 00:45:12 +00:00
|
|
|
|
2011-02-13 17:23:10 +00:00
|
|
|
gui.add(fizzyText, "speed", 0.1, 2);
|
2011-01-31 04:53:33 +00:00
|
|
|
|
|
|
|
// Sliders with min, max and increment.
|
2011-02-13 17:23:10 +00:00
|
|
|
gui.add(fizzyText, "noiseStrength", 10, 100, 5);
|
2011-02-03 00:45:12 +00:00
|
|
|
|
2011-01-31 04:53:33 +00:00
|
|
|
// Boolean checkbox
|
2011-02-13 17:23:10 +00:00
|
|
|
gui.add(fizzyText, "displayOutline");
|
2011-01-31 04:53:33 +00:00
|
|
|
|
|
|
|
// Fires a function called "explode"
|
2011-02-13 17:23:10 +00:00
|
|
|
gui.add(fizzyText, "explode");
|
|
|
|
|
|
|
|
|
|
|
|
timerControls.add(timer, "playPause");
|
|
|
|
timerControls.add(timer, "useSnap");
|
|
|
|
timerControls.add(timer, "snapIncrement");
|
|
|
|
|
|
|
|
timerControls.add(GUI, "save");
|
|
|
|
|
|
|
|
gui.add(fizzyText, 'y', -500, 500);
|
|
|
|
|
|
|
|
GUI.hide();
|
|
|
|
timer.playhead = 0;
|
|
|
|
timer.play();
|
|
|
|
|
2011-02-02 18:12:55 +00:00
|
|
|
|
2011-01-31 04:53:33 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2011-01-31 20:21:14 +00:00
|
|
|
|
2011-01-31 04:53:33 +00:00
|
|
|
//]]>
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2011-01-31 20:21:14 +00:00
|
|
|
<!-- GUIDAT logo -->
|
2011-01-31 04:53:33 +00:00
|
|
|
<div id="helvetica-demo"></div>
|
|
|
|
|
2011-01-31 20:21:14 +00:00
|
|
|
|
2011-01-31 04:53:33 +00:00
|
|
|
</body>
|
2011-01-29 00:38:58 +00:00
|
|
|
</html>
|