Skip to content

ThomasErhel/crazy-cycloid-anim

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ€ Crazy Cycloid Animation

GPLV3 with text

Here's a link to the animation.

โ„น๏ธ About

This animation runs on p5.js.

I was messing around with cycloid graphs in math class and came up for an idea for an animation.

Each frame, the epicycloid of two circles is drawn.

This graph draws the path of a point on the outer circle as it rolls around the outside of the inner circle.

The red curve is an epicycloid traced as the small circle (radius r = 1) rolls around the outside of the large circle (radius R = 3).

๐Ÿง  How ?

I draw this graph by sampling points on it and drawing lines between each adjacent pair of points.

Each frame, I increment the radius of the outer circle, as the ratio of the two radii is very important for the shape of the graph.

โœจ What makes this special ?

Is that varying the level of detail (aka number of points sampled on the graph) creates completely different, satisfying variations on the same animation.

Each of them follow wildly different paths but they all have a special symmetry about them.

๐ŸŽš๏ธ How to use ?

The slider in the bottom center controls this level-of-detail.

๐Ÿ™ Thank You

Eddie Hatfield

e-hat

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.8%
  • HTML 4.9%
  • CSS 0.3%