An image of a gem stone drawn using Python Turtle. The gem has facets generated by lines joining all the vertices. The Python Turtle code uses two loops.
Please feel free to copy and paste the code. Enjoy!
import turtle
scrin = turtle.Screen()
scrin.bgcolor("light green")
t = turtle.Turtle()
t.hideturtle()
t.pensize(6)
t.speed(6)
t.color("blue")
for j in [(0, 250), (250, 200), (400, 0), (250, -200), (0, -250), (-250, -200), (-400, 0), (-250, 200)]:
for i in [(250, 200), (400, 0), (250, -200), (0, -250), (-250, -200), (-400, 0), (-250, 200)]:
t.penup()
t.goto(j)
t.pendown()
t.goto(i)
scrin.exitonclick()
On this page of the site you can watch the video online Python Turtle Code: Gem with a duration of hours minute second in good quality, which was uploaded by the user Basic Python Turtle Art 30 January 2022, share the link with friends and acquaintances, this video has already been watched 60 times on youtube and it was liked by 3 viewers. Enjoy your viewing!