Mediterranian Sea

3d Complex Waves

Log in to post a comment.

// Forked from "D.1" by Ashwini
// https://turtletoy.net/turtle/89a2d3b229

// 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(-30, 40);
turtle.penup();
turtle.goto(-30,-80);
turtle.pendown();

// The walk function will be called until it returns false.
function walk(i) {
    turtle.forward(.2);
    turtle.circle((i & -i) << 1 & i ? -.3: .5, 70);
    //turtle.back(.5);
    return i < 3000;
}