pathgl
Version:
A webgl renderer for data visualization, motion graphics and explorable explanations.
77 lines (71 loc) • 3.12 kB
HTML
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>WebGL Library for Data Visualization and Simulation - PathGL</title>
<script src="/lib/d3.js"></script>
<script src="/lib/topojson.v1.min.js"></script>
<script src="/lib/projection.js"></script>
<script src="/lib/tip.js"></script>
<script src="/dist/pathgl.js"></script>
<link rel="stylesheet" href="/lib/adnan.css">
</head>
<body>
<div class="nav">
<a href="http://github.com/adnan-wahab/pathgl">Github Repo</a>
<a href="/dist/pathgl.zip">Download</a>
<h3>Examples</h3>
<ul class="examples">
<li class="mobile-only"><a href="/examples/swarm.html">200k Circles</a>
<li class="desktop-only"><a href="/examples/physics.html">Particle Simulation</a>
<li><a href="/examples/map.html">Map of History</a>
<li><a href="/examples/music.html">Music Visualizer</a>
</ul>
<h3>Documentation</h3>
<ul class="docs">
<li><a href="/documentation/start.html">Getting Started</a>
<li><a href="/documentation/api.html">API Reference</a>
<li><a href="/documentation/webgl.html">The Graphics Pipeline</a>
<li><a href="/documentation/svg.html">SVG Differences</a>
<li><a href="/documentation/gpgpu.html">GPGPU</a>
</ul>
<div class="mode">
<h3>Rendering Mode</h3>
<label for="svg">SVG<input type="radio" name="mode" id="svg"></label>
<label for="webgl">WebGL<input type="radio" name="mode" checked="1" id="webgl"></label>
<img class="t" src="data/test.png">
<img class="l" src="data/leaves.jpg">
</div>
</div>
<div class="right" id="scroll">
<div class="blurb"></div>
<svg></svg>
<canvas width="960" height="500"></canvas>
<h1 id="pathgl">PathGL</h1>
<p>Pathgl is a library for data visualization and simulation using d3.</p>
<h2 id="getting-started">Getting Started</h2>
<p>To link directly the latest release, copy this snippet:</p>
<pre><code class="lang-html"><script src="http://adnanwahab.com/pathgl/dist/pathgl.min.js"
charset="utf-8"></script>
</code></pre>
<p>Or download the <a href="http://adnanwahab.org/pathgl/dist/pathgl.zip">latest release</a> and
include in your html.</p>
<p>If you want to use pathGL within a module system, <code>npm install pathgl --save</code>.</p>
<h2 id="your-ultimate-creation">Your ultimate creation</h2>
<pre><code class="lang-html"><script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://pathgl.com/dist/pathgl.js"></script>
<canvas height="600px" width="600px"></canvas>
<script>
d3.select('canvas').append('circle')
.attr('r', 100)
.attr('cx', 50)
.attr('cy', 50)
.attr('fill', 'pink')
</script>
</code></pre>
<h2 id="next-steps">Next Steps</h2>
<p>Check out the examples to learn more.
Tutorials on creating your own data tiles and simulation textures coming soon!</p>
</div>
</body>