There's a new #Numberphile video out with Ben Sparks. At the end they showed a teaser of another video with Ben, "Beautiful Trigonometry". Back when that came out, I recreated Ben's visualisation with settings and sliders in Processing's p5js. Try it! https://ednl.github.io/spirojs/

Video alt: a colourful circle composed of miniature circles (balls) seems to spin around inside a bigger circle. It's an illusion: all the individual balls move in perfectly straight lines on diagonals of the big circle.

The same page but with different settings that make clear what's really happening: https://ednl.github.io/spirojs/?n=2&s=20&d=0&f=0&r=0&l=1&c=0&w=0

Video alt: two small yellow balls move smoothly along two perpendicular axes, perfectly out of sync. They are both projections of a hidden object moving around in a circle.

Try it out! Change the checkboxes, drag the sliders. You can copy the link from "link here" to share your settings. https://ednl.github.io/spirojs/

#mathematics #numberphile #trigonometry #visualisation #animation #processing #p5jx #p5xjs

Spirograph with p5.js

The original Numberphile video with Ben Sparks: https://youtu.be/snHKEpCv0Hk
Beautiful Trigonometry - Numberphile

YouTube
I should have used these settings, gah! The white dot as explanation of the projection with the two slow balls, and the colourful ring sped up.