Lissajous Curve Tracing Algorithm

Lissajous curves are a family of curves described by the following parametric equations:

Lissajous-Parametric-Equations

Lissajous curves have applications in physics, astronomy, and other sciences. Below are a few examples of Lissajous curves that you will be able to reproduce in the Python Trinket provided below by changing the values of constant A and B in the Python code.

Lissajous Curves

Lissajous Curves

Lissajous Curve using Python Turtle


Spirographs?

When tracing different Lissajous curves, you will notice that these curves are enclosed in a rectangular shape.

Spirographs are very similar to Lissajous curve but instead of being enclosed by rectangular boundaries, spirographs are generally enclosed by a circular boundary.

You can trace your own spirographs using Python Turtle by completing this Python Turtle challenge.

Rose Curves


Your task is to adapt the above Python script to draw different Rose curves. You can find out more about rose curves and about their parametric equations on the following wikipedia page.

rose-curves-parametric-equations

rose-curves

unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 5

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!