- 1
Rect angel
import turtle colors = ["red","green","purple","yellow","orange","blue"] t = turtle.pen() turtle.bgcolor("black") for x in range(360): t.pencolor(colors[x%6]) t.width(x//100+1) t.format(x) t.left(59)
4 Réponses
+ 3
Hi, this is the Q&A section. Here you can ask programming related questions. What is your question?
And as a side note:
A rect angel 👼? Sounds cute. :)
+ 1
Sohil Singh
Do you have a question relating to this code, or are you just advertising?
+ 1
Sohil Singh
Pen not pen
forward not format.
And it should be: turtle.Screen().bgcolor("black").
And yes, you should try to describe your problem. It makes it easier for people to help you.
import turtle
colors = ["red","green","purple","yellow","orange","blue"]
t = turtle.Pen()
turtle.Screen().bgcolor("black")
for x in range(360):
t.pencolor(colors[x%6])
t.width(x//100+1)
t.forward(x)
t.left(59)
+ 1
Bob_Li
Well done! 😁👍