From 51981d06f90656ab8e64d795117a838b1f3ed4ba Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sun, 20 May 2012 18:36:58 +0300 Subject: three.js link --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 4f1dc2d..c78b9fe 100644 --- a/index.html +++ b/index.html @@ -59,7 +59,7 @@ var tree = lsys.iterate(2); console.log(tree); // F-F+FF-F-F+FF+F-F+FFF-F+FF var coords = lsys.draw(Math.PI / 2); console.log(coords); // [[[0,0,0], [0,1,0], [1,1,0], ... ]] -

These coordinates can now be plotted by any front-end. For example, using THREE.js:

+

These coordinates can now be plotted by any front-end. For example, using THREE.js:

 for (var i=0; i<coords.length; i++) {
   var branch = [];
-- 
cgit v1.3.1