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CBzaXplIHRvIDUKICAgICAgICBrID0gaSAvIDEwMAogICAgICAgIHggPSBoZWFydGEoaykgKiAyMCAqIHNjYWxlICAjIFNjYWxlIGRvd24gdGhlIGNvb3JkaW5hdGVzCiAgICAgICAgeSA9IGhlYXJ0YihrKSAqIDIwICogc2NhbGUKICAgICAgICBnb3RvKHgsIHkpCgogICAgZW5kX2ZpbGwoKSAgIyBGaWxsIHRoZSBsYXllcgoKIyBBZGRpbmcgdGV4dCBpbnNpZGUgdGhlIGhlYXJ0CnBlbnVwKCkgICMgTGlmdCB0aGUgcGVuIHRvIGF2b2lkIGRyYXdpbmcgbGluZXMKZ290bygwLCAtMTApICAjIFBvc2l0aW9uIHRoZSB0ZXh0IGluIHRoZSBjZW50ZXIgb2YgdGhlIGhlYXJ0CmNvbG9yKCZxdW90O2xpZ2h0cGluayZxdW90OykgICMgVGV4dCBjb2xvcgp3cml0ZSgmcXVvdDtKRUVUVSZxdW90OywgYWxpZ249JnF1b3Q7Y2VudGVyJnF1b3Q7LCBmb250PSgmcXVvdDtBcmlhbCZxdW90OywgMjIsICZxdW90O2JvbGQmcXVvdDspKSAgIyBDaGFuZ2UgJnF1b3Q7WW91ciBOYW1lJnF1b3Q7IHRvIHRoZSBkZXNpcmVkIG5hbWUKCmRvbmUoKQ==
import math
from turtle import *
def hearta(k):
return 15 * math.sin(k) ** 3
def heartb(k):
return 12 * math.cos(k) - 5 * math.cos(2 * k) - 2 * math.cos(3 * k) - math.cos(4 * k)
# Set up the turtle
speed('fastest') # Maximum speed for the drawing
bgcolor("black")
pensize(2)
hideturtle()
# Draw the heart outline
color("red")
begin_fill()
for i in range(1000):
k = i / 100
x = hearta(k) * 20
y = heartb(k) * 20
goto(x, y)
end_fill() # Fill the heart outline
# Now fill inside the heart with varying shades
for scale in [0.8, 0.6, 0.4, 0.2]: # Different scales for layered filling
color((1 - scale, 0, 0)) # Shades of red
begin_fill()
# Use fewer iterations for inner filling to increase speed
for i in range(0, 1000, 5): # Increased step size to 5
k = i / 100
x = hearta(k) * 20 * scale # Scale down the coordinates
y = heartb(k) * 20 * scale
goto(x, y)
end_fill() # Fill the layer
# Adding text inside the heart
penup() # Lift the pen to avoid drawing lines
goto(0, -10) # Position the text in the center of the heart
color("lightpink") # Text color
write("JEETU", align="center", font=("Arial", 22, "bold")) # Change "Your Name" to the desired name
done()