git @ Cat's Eye Technologies Erratic-Turtle-Graphics / 6bb8cc1
Clean up. Chris Pressey 2 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2727 value: "setxyp 0.125 0.666 lt 18 repeat 7 [ repeat 500 [ fd 150 lt 144 ] shiftxyp 0.125 0.0 shifterr 0.00375 0.3 ]"
2828 },
2929 {
30 text: 'Circle Chain',
30 text: 'Chain',
3131 value: "setxyp 1.0 0.5 repeat 7 [ repeat 1845 [ fd 2.0 lt 4 ] lt 180 shifterr 0.00375 0.225 ] repeat 7 [ repeat 1845 [ fd 2.0 lt 4 ] lt 180 shifterr -0.00375 -0.225 ]"
3232 }
3333 ];
3737 turtle.reset();
3838 var p = (new Parser()).init(program);
3939 var i = p.parseInstrs();
40 console.log(uneval(i));
4140 interpretInstrs(i, turtle);
4241 }
4342
5554 })
5655 ),
5756 div(
58 programTextarea,
57 programTextarea
5958 ),
6059 div(
6160 button("Run", {