Propose Day SPECIAL 💍 || Valentine Day SPECIAL ❤️

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(-200,0)

t.forward(60)

t.left(90)

t.forward(20)

t.left(90)

t.forward(20)

t.right(90)

t.forward(60)

t.right(90)

t.forward(20)

t.left(90)

t.forward(20)

t.left(90)

t.forward(60)

t.left(90)

t.forward(20)

t.left(90)

t.forward(20)

t.right(90)

t.forward(60)

t.right(90)

t.forward(20)

t.left(90)

t.forward(20)

t.right(270)

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.forward(90)

t.left(90)

t.forward(100)

t.left(90)

t.forward(20)

t.left(90)

t.forward(80)

t.right(90)

t.forward(50)

t.right(90)

t.forward(80)

t.left(90)

t.forward(20)

t.left(90)

t.forward(100)

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('NAME',(-85,-145)) write('Will You Be My Valentine ',(-360,-215)) print("/U0001F48C",(-85,-145)) turtle.done()

OUTPUT



Comments

  1. ITS says attribute error in line 11 i e in this line turtle.bgcolor("black")

    ReplyDelete

Post a Comment

Popular posts from this blog

Impress Your Crush Using Python

Drawing Rose 🌹 using python code