Inspired by: youtube.com/shorts/hkbnpd8zlko
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax
// How to draw the 16 x 8 Circles Grid
// Inspired by: https://www.youtube.com/shorts/hKbNPD8zlKo
Canvas.setpenopacity(1);
// Global code will be evaluated once.
const turtle = new Turtle();
const scale=10 // min=5, max=20, step=1
// draw 8 concentric circles
for(n=0; n<=8; n++){
turtle.penup();
turtle.goto(0,-scale * n); // center the circles
turtle.pendown();
turtle.circle(scale * n);
}
for(angle=0; angle<=15; angle++){
turtle.penup();
turtle.goto(0,0) // center of canvas
turtle.pendown;
turtle.seth(angle * 22.5);
turtle.pendown();
turtle.forward(scale * 8);
}