Experimenting
Log in to post a comment.
Canvas.setpenopacity(1); const turtle = new Turtle(); const parts = 15; // min=1, max=100, step=1 const linesPerPart = 45; // min=1, max=500, step=1 function walk(i) { turtle.penup(); const x = 100-(200 / parts * i); const direction = Math.floor(Math.random() * 4); turtle.setheading(360 / (direction)); [...Array(linesPerPart).keys()].forEach(i => { turtle.goto(x, 100 - Math.floor(Math.random() * 200)) turtle.pendown(); turtle.forward(5); }) return i < parts; }