Not quite what is on page 38
direct.mit.edu/books…uter-as-a-medium-for
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax Canvas.setpenopacity(1); // Global code will be evaluated once. const turtle = new Turtle(); const n=1; //min=1 max=7 step=1 var count = 0; turtle.penup(); turtle.goto(0,0); turtle.pendown(); // The walk function will be called until it returns false. function walk(i) { subspiro(5,90,n); i++; return i < 35; } function subspiro (side, angle, max){ count ++; turtle.pendown(); for (var i = 0; i < max; i++) { step = side * count; turtle.right(angle); turtle.forward(step); } }