About whta I did or what I made

hey Today I work on paython turtle which it is flower .

Let’s see the code first

#Wait for End
import turtle
import colorsys
sq = turtle. Turtle()
turtle.title('NIIN KM')
s = turtle.Screen()
# s.setup(width=600, height=670)
turtle.bgcolor('GRAY')
c=70
turtle.tracer(2)

for i in range(200):
    p = colorsys.hsv_to_rgb(c, 1, 0.99)
    sq.pencolor(p)
    c+=0.003
    sq.fd(i)
    sq.bk(c)
    sq.lt(45)
    sq.fd(c)
    sq.lt(100)
    sq.bk(c)
    sq.goto(0,0)

turtle.done()

So part is for background.

turtle.bgcolor('GRAY')

And here you can see the picture of flower.

And here the picture that from where i did that.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top