Similar Posts

Subscribe
Notify of
3 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Schachpapa
1 year ago

In your tutorial, some commands are already shown, for this task you need the loop with “repeat” and the commands forward(range) and left(90).

left(90) always bends to the left by 90°, i.e. at right angles.

With

    repeat 4: 
        forward(100) 
        left(90)

you draw a square of the side length 100. You go four times 100 steps forward and turn left after 100 steps. In the end, you’re back where you started.

The spiral goes so similar, only that after each turn you have to reduce the far a bit.

weite = 500
repeat 100:
  forward(weite)
  left(90)
  weite = weite - 5

Try it.

And if the whole is to be colored, you have to change the color, for example, by far = 300 and by far = 100.

With the values 500 as the initial value for wide, 100 as a repetition number and 5 as a shortcut you have to play a little around. I didn’t try this now.

PWolff
1 year ago
Reply to  Schachpapa

However, according to the task, the spiral should be drawn differently

Schachpapa
1 year ago
Reply to  PWolff

Right, I drew from the outside to the inside.

So don’t move, but enlarge.

And probably then +1 then the distance between two lines is exactly 4.