import turtle
import random
wn = turtle.Screen()
wn.setup(width=800, height=800)
t = turtle.Turtle()
turtle.bgcolor("black")
t.pensize(3)
t.pencolor("white")
def myPosition(x,y):
t.penup()
t.goto(x,y)
t.pendown()
myPosition(0,0)
def curve():
for i in range(200):
t.right(1)
t.forward(1)
def hi():
t.fillcolor('red')
t.begin_fill()
t.left(140)
t.forward(113)
curve()
t.left(120)
curve()
t.forward(112)
t.end_fill()
hi()
t.ht()
myPosition(140,0)
t.left(140)
t.end_fill()
def write(message,pos):
x,y=pos
t.penup()
t.goto(x,y)
t.color('white')
style=("Stencil Std", 18, "italic")
t.write(message, font=style)
#Write your message
write('I Love You',(-125,-125))
# Write Your crush name
write('Name...',(-85,-205))
turtle.done()
Comments
Post a Comment