Tunnel Nine

Spiral edges.

Log in to post a comment.

Canvas.setpenopacity(0.85);

const turtle = new Turtle();
turtle.penup();
turtle.goto(96, 92);
turtle.pendown();
const layer = 2;
const segments = 9;
let length = 5;
let increment = 0.01;

function walk(i) {
    if (i%segments==segments-1) {
        turtle.left(90);
        turtle.penup();
        turtle.forward(layer);
        turtle.pendown();
        turtle.right(90);
        length += increment;
        increment += 0.01;
    }
    turtle.forward(length);
    turtle.right(360/segments);
    return i < 1620;
}