Python Turtle: Rotating Square

Published: 19 January 2022
on channel: 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()


On this page of the site you can watch the video online Python Turtle: Rotating Square with a duration of hours minute second in good quality, which was uploaded by the user Basic Python Turtle Art 19 January 2022, share the link with friends and acquaintances, this video has already been watched 1,415 times on youtube and it was liked by 6 viewers. Enjoy your viewing!