1st quick experiment , hello dear visitor
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax Canvas.setpenopacity(0.6); // Global code will be evaluated once. const turtle = new Turtle(); turtle.penup(); turtle.goto(0,0); turtle.pendown(); // The walk function will be called until it returns false. function walk(i) { turtle.forward(i*0.5); //turtle.circle(7); turtle.right(Math.floor(Math.random() * (300))); turtle.left(Math.floor(Math.random() * (300))); let r = Math.floor(Math.random() * (10)) turtle.circle(r); for (var j=0;j<(i/3);j++){ turtle.circle(r+(j/5)); } return i < 200; }