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

Lissajous Curve with Python Turtle

Lissajous Curve is a famous curve with both practical use and in art and design. It is generated by a simple parametric equation:

x = 300*math.cos(k1*t)
y = 300*math.sin(k2*t)

In the equation above t is the parameter. Let it range gradually from 0 to 4π. Set k1 to 3 and k2 to 2 and drawing the following shape. You can play with other numbers for k1 and k2 to see different curves.

Lissajous Curve with Python Turtle

Related Post