Coloring FLOWER by Python turtle

Yes It is Right Site. Now I will share how you Draw a Colouring Flower by Python.Actually I do it 

by Python Turtle Module.Besides Turtle You need  other one Modules .

Pencil Drawing by Python Turtle 

What is it?

You need import colorsys module.You can easily draw the colouring Flower with this two modules.





Do you Need Colouring Follower by Python .?

OK I give you The code.

 

from turtle import *
import colorsys

speed(0)
bgcolor('black')
pensize(2)

for i in range(16):
begin_fill()
for j in range(10):
c = colorsys.hsv_to_rgb(i / 15, j / 20, 1)
color(c)
rt(90)
circle(150 - j * 6, 90)
lt(90)
circle(150 - j * 6, 90)
rt(180)
circle(40, 24)
end_fill()

done()

 copy the code on your IDE and make it.If you face any problem comment here.

 


Comments