Python and Turtle Difficulty Level 6,loop,math Heart with Parametric Equation and Python Turtle

Heart with Parametric Equation and Python Turtle

Use the following parametric equations to draw the following filled heart curve.

    x = 10*(16*math.sin(t)**3)
    y = 10*(13*math.cos(t)-5*math.cos(2*t)-2*math.cos(3*t)-math.cos(4*t))

The variable t is the parameter for the curve. Let t range from 0 to 2π with small increment.

Heart Curve with Python Turtle

If you want to draw a simpler heart refer to this tutorial on drawing a simple heart.

Related Post