Spokes

Based on some code from ChatGPT I asked it to draw a snowflake as a "seed"

Log in to post a comment.

Canvas.setpenopacity(1);

// Global code will be evaluated once.
const turtle = new Turtle();
turtle.penup();
turtle.goto(0, 0);
turtle.pendown();

let increment = 5.72; //min=0.01, max=10, step=.001
let stop = 100; //min=0, max=360, step=1

// The walk function will be called until it returns false.
function walk(i) {

    turtle.forward(30);
    turtle.right(60);
    turtle.penup();
    turtle.forward(10);
    turtle.left(120);
    turtle.forward(10);
    turtle.pendown();
    turtle.right(60);
    turtle.forward(30);
    turtle.right(150);
    turtle.penup();
    turtle.goto(0, 0);
    turtle.right(60 * 1);
    turtle.pendown();

  turtle.right(increment);
  return i < stop;
}