import turtle as t
import colorsys
t.speed(0)
t.hideturtle()
t.bgcolor("black")
t.title("Rainbow")
t.setup(700,700)
colors=49
radius=300
penwidth=20*7/colors
hue=0
def draw(x,y,r,pensize,color):
t.up()
t.goto(x+r,y)
t.down()
t.seth(90)
t.pensize(pensize)
t.pencolor(color)
t.circle(r,180)
for i in range(colors):
(r,g,b)=colorsys.hsv_to_rgb
(hue,1,1)
draw(0,-100,radius,penwidth,(r,g,b))
radius-=(penwidth-1)
hue+=0.9/colors
import colorsys
t.speed(0)
t.hideturtle()
t.bgcolor("black")
t.title("Rainbow")
t.setup(700,700)
colors=49
radius=300
penwidth=20*7/colors
hue=0
def draw(x,y,r,pensize,color):
t.up()
t.goto(x+r,y)
t.down()
t.seth(90)
t.pensize(pensize)
t.pencolor(color)
t.circle(r,180)
for i in range(colors):
(r,g,b)=colorsys.hsv_to_rgb
(hue,1,1)
draw(0,-100,radius,penwidth,(r,g,b))
radius-=(penwidth-1)
hue+=0.9/colors
❤1
Do you want to learn Free Python with Real world Project and Certification ???
Anonymous Poll
96%
Yes
4%
No
👍2
Already 50+ students enrolled Thanks to All Action taker students 💯✅🚀
It is available on 80% discount so don't miss this offer 🎁🚀
It is available on 80% discount so don't miss this offer 🎁🚀