import matplotlib.pyplot as plt
import numpy as np
# Define the heart shape using parametric equations
t = np.linspace(0, 2 * np.pi, 1000)
x = 16 * np.sin(t)**3
y = 13 * np.cos(t) - 5 * np.cos(2 * t) - 2 * np.cos(3 * t) - np.cos(4 * t)
# Create the plot
plt.figure(figsize=(6, 6))
plt.fill(x, y, color='red')
plt.title('Red Love-Shaped Emoji')
plt.axis('equal')
plt.axis('off') # Turn off the axis
# Display the plot
plt.show()
To embed this project on your website, copy the following code and paste it into your website's HTML: