python turtle graphic design Heart....

 python turtle graphic design Heart....



Source Code:-

import turtle

#make a Turtle
a=turtle.Turtle

#set screen color
S=turtle.Screen()
S.bgcolor('black')

#set color of Heart
a.fillcolor("red")
a.begin_fill()

#drawing start
a.pencolor("white")
a.left(50)
a.fd(120)
a.circle(45,200)
a.lt(221)
a.circle(45,200)
a.fd(120)
a.end_fill()

turtle.done()


Previous Post Next Post