road

first turtle

Log in to post a comment.

Canvas.setpenopacity(1);

const turtle = new Turtle();
let x, y;

function walk(i) {
    x = -100+200*Math.random();
    y = -10+200*Math.random();
    turtle.penup();
    turtle.goto(x,y);
    turtle.seth(Math.random()*360);
    turtle.pendown();
    turtle.forward(Math.random()*(y-x)/4);
   //turtle.forward(Math.random()*13);
    return i < 50000;
}