DRAW A FLOWER USING PYTHON PROGRAMMING, PYTHON TURTLE GRAPHICS
Your welcome to our website COMPUTER SOFT SKILLS, after reading this article you can make this in just 2 minutes.
THIS IS PYTHON PROGRAMMING TO DRAW FLOWER.
How to draw Flower using Python Turtle.
YOU CAN COPY THIS CODE AND SAVE IN YOUR SYSTEM.
This Programming created by Rohit, owner of Computer Soft Skills.
Yes you read it right! You can make that type of Project easily in Python application.
#_________ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL __________
#.......................... DRAW A FLOWER USING PYHON TURTLE GRAPHICS ......................
from turtle import *
import turtle
import colorsys
tracer(100)
# Turtle Window
wn = turtle.Screen()
wn.setup(width=700, height=700)
wn.title("COMPUTER SOFT SKILLS :- FLOWER")
turtle.bgcolor('gray')
t = turtle.Turtle()
t.speed(150)
def leaf():
t.color('blue')
t.begin_fill()
t.rt(90)
t.lt(90)
t.fd(10)
t.lt(90)
t.end_fill()
h = 0.9
for i in range(180):
c = colorsys.hsv_to_rgb(h,1,1)
t.color(c)
h += 0.005
t.begin_fill()
t.circle(180-i,100)
t.lt(100)
t.circle(180-i,100)
t.rt(100)
t.end_fill()
turtle.done()
0 Comments