Permalink
Browse files

moved example to index.

  • Loading branch information...
asalga committed Oct 29, 2014
1 parent b85160d commit b2360daad8e87785b0500cad83bc821237d980cf
Showing with 26 additions and 0 deletions.
  1. +26 −0 index.html
@@ -0,0 +1,26 @@
<html>

<head>
<script src="example.js"></script>
<script src="xbps.js"></script>
</head>

<body onLoad="start();">
<canvas id="canvas" style="border: 1px solid black;" width="400" height="400"></canvas>
</body>
<pre>
var ps, acorn;

function start(){
ps = new PointStream();
ps.setup(document.getElementById('canvas'));
ps.pointSize(5);
ps.onRender = function(){
ps.translate(0, 0, -25);
ps.clear();
ps.render(acorn);
};
acorn = ps.load("clouds/acorn.asc");
}
</pre>
</html>

0 comments on commit b2360da

Please sign in to comment.