This is a flower
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();//Defines the turtle
turtle.goto(0,0,);//
turtle.pendown();
// The walk function will be called until it returns false.
function walk(i) {
turtle.forward(30 + Math.sin(i) * 20);
turtle.right(30 + Math.sin(i) * 50);
return i < 1000;
}