Python Turtle: Rotating Square

Опубликовано: 19 Январь 2022
на канале: Basic Python Turtle Art
1,415
6

A spiro art generated by 18 squares that are stamped images of a rotating square. The point of rotation is somewhere on the red side.

Please feel free to copy and paste the code below. Enjoy!
import turtle
scrin = turtle.Screen()
scrin.bgcolor("light yellow")
#Drawing specifications
t = turtle.Turtle()
t.hideturtle()
t.speed(5)
t.pensize(4)
for i in range(18):
t.penup()
t.goto(0, 0)
t.forward(150)
t.pendown()
t.color("red")
t.left(20)
t.forward(50)
for colors in ["green", "blue", "orange"]:
t.color(colors)
t.left(90)
t.forward(200)
t.color("red")
t.left(90)
t.forward(150)
scrin.exitonclick()


На этой странице сайта вы можете посмотреть видео онлайн Python Turtle: Rotating Square длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Basic Python Turtle Art 19 Январь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,415 раз и оно понравилось 6 зрителям. Приятного просмотра!