Iris

A first experiment to draw an iris

Created by Nossie on 2019/3/29
152
0

Log in to post a comment.

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

// The walk function will be called until it returns false.
function walk(i) {
    turtle.left(35);
    turtle.forward(60);
    turtle.right(120);
    turtle.forward(60);
    turtle.right(120);
    turtle.forward(120);
    turtle.left(120);
    turtle.forward(60);
    turtle.left(120);
    turtle.forward(60);
   
    
    return i < 50;
}