Play001
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax
Canvas.setpenopacity(1);
const count=1000; // min=1 max=1000 step=1
const angle=154; // min=0 max=360 step=0.1
const size=100; // min=1 max=100 step=0.1
const x=-50; // min=-100 max=100 step=1
const y=81; // min=-100 max=100 step=1
// Global code will be evaluated once.
const turtle = new Turtle();
turtle.penup();
turtle.goto(x,y);
turtle.pendown();
// The walk function will be called until it returns false.
for(n=0; n<count; n=n+1) {
turtle.forward(size);
turtle.right(angle);
}