Hypotrochoid

Hypotrochoid

When I was in school, learned to trace by a point attached to a circle rolling around the inside of a another fixed circle thus forming beautiful shapes. But never tried to emulate the same through computer code.
Hypotrochoid is my attempt to emulate the shape through computer code.

Since its fun working on the web, the computer code is written in javascript.
Hypotrochoid's javascript is almost similar to what I had done for Sphere.
Just changed the magic code performing all the drawing of beautiful shape.

This hypotrochoid doesn't show any circle rolling on a fixed circle, but instead concentrates on the path(curve) traced by a point sitting on a rolling circle, that rolls on the inside of a another bigger circle that is fixed, eventually displaying an entire path traced.

Hypotrochoid may look static and not moving at first look, but observing it carefully one can see that each particle follows the path of point sitting on rolling circle.
It contains 10000 particles tracing the path of a point sitting on rolling circle.
Since, these 10000 particles continuously change their position according to time, the path looks as a shape.

Hypotrochoid also shows X and Y axes, to check for symmetricity of the drawn curve.

If you are curious how it looks, a live Demo is here.

Github Source..

Comments

Popular Posts