diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-27 12:42:48 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-27 12:42:48 -0400 |
| commit | 210e8feae2fb4842bfb2de38666e6c41671fef3c (patch) | |
| tree | cbdafa34b1a6260bb20236d7e9de9eb1b690a1c5 /www/lib/vis/examples/graph3d/06_moving_dots.html | |
| parent | e7e7baeaad90229ccb3e0f45f4ebd77be7d79b14 (diff) | |
removed lib
Diffstat (limited to 'www/lib/vis/examples/graph3d/06_moving_dots.html')
| -rw-r--r-- | www/lib/vis/examples/graph3d/06_moving_dots.html | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/www/lib/vis/examples/graph3d/06_moving_dots.html b/www/lib/vis/examples/graph3d/06_moving_dots.html deleted file mode 100644 index b24bb520..00000000 --- a/www/lib/vis/examples/graph3d/06_moving_dots.html +++ /dev/null @@ -1,78 +0,0 @@ -<!doctype html> -<html> -<head> - <title>Graph 3D animation moving dots</title> - - <style> - body {font: 10pt arial;} - </style> - - <script type="text/javascript" src="../../dist/vis.js"></script> - - <script type="text/javascript"> - var data = null; - var graph = null; - - // Called when the Visualization API is loaded. - function drawVisualization() { - // create the data table. - data = new vis.DataSet(); - - // create some shortcuts to math functions - var sin = Math.sin; - var cos = Math.cos; - var pi = Math.PI; - - // create the animation data - var tmax = 2.0 * pi; - var tstep = tmax / 75; - var dotCount = 1; // set this to 1, 2, 3, 4, ... - for (var t = 0; t < tmax; t += tstep) { - var tgroup = parseFloat(t.toFixed(2)); - var value = t; - - // a dot in the center - data.add( {x:0,y:0,z:0,filter:tgroup,style:value}); - - // one or multiple dots moving around the center - for (var dot = 0; dot < dotCount; dot++) { - var tdot = t + 2*pi * dot / dotCount; - data.add( {x:sin(tdot),y:cos(tdot),z:sin(tdot),filter:tgroup,style:value}); - data.add( {x:sin(tdot),y:-cos(tdot),z:sin(tdot + tmax*1/2),filter:tgroup,style:value}); - } - } - - // specify options - var options = { - width: '600px', - height: '600px', - style: 'dot-color', - showPerspective: true, - showGrid: true, - keepAspectRatio: true, - verticalRatio: 1.0, - animationInterval: 35, // milliseconds - animationPreload: false, - animationAutoStart: true, - legendLabel: 'color value', - cameraPosition: { - horizontal: 2.7, - vertical: 0.0, - distance: 1.65 - } - }; - - // create our graph - var container = document.getElementById('mygraph'); - graph = new vis.Graph3d(container, data, options); - } - </script> - <script src="../googleAnalytics.js"></script> -</head> - -<body onload="drawVisualization();"> -<div id="mygraph"></div> - -<div id="info"></div> -</body> -</html> |
