Featured Post

Data Science Concepts

Python Turtle - Draw Spiral Helix Pattern in Python turtle Graphics | Spiral Helix By #BKTutorial

 





Source Code:

import turtle 

colors = ['blue', 'orange', 'green', 'red'] 
t = turtle.Pen()
turtle.speed(100)

for a in range(30): 
    t.pencolor(colors[a%4]) 
    t.width(a/100 + 2) 
    t.forward(a) 
    t.circle(5*a) 
    t.circle(-5*a) 
    t.left(a)

t.hideturtle(turtle)



Comments