In this post, we are going to understand How to Draw torus using Python turtle Graphic. Using the turtle library we can draw a beautiful design in simple steps.
Most Popular
- How to Draw overlap circles Spiral in Python Turtle
- How to create Start Spiral in Python Turtle
- How to Draw a Rainbow in Python Turtle
How to Draw torus using Python turtle Graphic
from turtle import *
import random
setup(width=600,height=700)
colorlist = ["red", "violet", "orange", "blue", "yellow"]
speed(60)
pensize(2)
for i in range(200):
circle(150)
color(colorlist[i%5])
left(53)
forward(i/50+20)
i += 2
hideturtle()
Output
