Python Turtle: Rotating Square

Publicado em: 19 Janeiro 2022
no canal de: 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()


Nesta página do site você pode assistir ao vídeo on-line Python Turtle: Rotating Square duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Basic Python Turtle Art 19 Janeiro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,415 vezes e gostou 6 espectadores. Boa visualização!