Breaking Waves

Breaking Waves

Log in to post a comment.

// You can find the Turtle API reference here: https://turtletoy.net/syntax
Canvas.setpenopacity(0.5);

// Global code will be evaluated once.
const turtle = new Turtle();
turtle.penup();
turtle.goto(-40, -40);
turtle.pendown();


for (let i = 11; i < 1100; i++) {
    turtle.forward( i / i*2);
    
    turtle.right(i+0.9);
    turtle.forward(i/1111 );
    turtle.left(-i/2);
}