- 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)

29th May 2022, 9:16 AM
Sohil Singh
Sohil Singh - avatar
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. :)
29th May 2022, 9:27 AM
Lisa
Lisa - avatar
+ 1
Sohil Singh Do you have a question relating to this code, or are you just advertising?
29th May 2022, 9:19 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 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)
29th May 2022, 10:43 AM
Bob_Li
Bob_Li - avatar
+ 1
Bob_Li Well done! 😁👍
29th May 2022, 11:01 AM
Rik Wittkopp
Rik Wittkopp - avatar