Python and Turtle Difficulty Level 6,loop,math,python Drawing Parametric Curve with Python Turtle

Drawing Parametric Curve with Python Turtle

Parametric equations provides a convenient way to draw curves. We will use the following parametric equation in this project.

x = 200*(math.cos(a*t) - math.cos(b*t)**j)
y = 200*(math.sin(c*t) - math.sin(d*t)**k)

In the equations above, t is the parameter. Let is range from 0 to 2π with very small increment. Use different values for a,b,c,d,j,k to draw the following shapes (you can see the their values in the title of the pictures):

4,1,4,1,3,3
80,1,1,80,3,3
80,1,80,1,3,3
9,199,200,9,3,4

Related Post