From 853f4fcda9eb6f0b908d409ce7806ed704698a5a Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Tue, 29 May 2012 11:18:06 +0300 Subject: Fix vector direction flip to turn by 180 degrees Current buggy behavior turns by 90 degrees --- lsys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsys.js b/lsys.js index a458fa7..c3e3466 100644 --- a/lsys.js +++ b/lsys.js @@ -72,7 +72,7 @@ function LSystem(axiom, rules, draw_constants) { break; case '|': - U += Math.PI / 2; + U += Math.PI; RUu = true; break; // push and pop branch -- cgit v1.3.1