22 Décembre 2018
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax Canvas.setpenopacity(0.3); // Global code will be evaluated once. const turtle = new Turtle(); turtle.penup(); turtle.goto(0,-40) turtle.pendown(); // The walk function will be called until it returns false. function lol(penis) { for (let i=0; i<1000; i++) { turtle.forward(x*i/100); turtle.right(i*penis-x); } } const x = Math.random() //for (let i=0; i<100; i++) // { // lol((Math.random() > x) ? (1+x) : (10)); // turtle.right(10) //} function walk(i){ lol((Math.random() > x) ? (1+x) : (10)); return i < 1000 }