turtleArt | stars

Can you uncover the pattern in the sequence of shapes which are generated?

What do you think is happening here?
Is it possible to write a single program to generate all of these?

5 Likes

Since you ask, yes. I think, even I could do that :smile:


Here is a task list for you!

3 Likes

Have mercy! :rofl: I promise not to make any more rash promises!

2 Likes

One down, 39 more to go!

Here is 23

1 Like

Are these arranged according to increasing difficulty level? Each of these is possible to make by repetition?

The python implementation of the same

import turtle
t=turtle.Turtle()
for j in range(10):
  for i in range(3):
    t.fd(100)
    t.rt(120)
  t.rt(36)

tA_23

@ravi312 make sure to check out Joy.js https://ncase.me/joy/demo/turtle/

1 Like

This is indeed amazing! I was looking for something similar. The algorithm becomes the code without worrying about the syntax. Its another interesting way to introduce to children!

Here is 32

1 Like