Home page for Jason Thompson's Blog

Jason Thompson's Blog

Oscillating Yarn

This processing sketch is based on Example 3.7 in Daniel Shiffman’s excellent book, Nature of Code, but I removed the line connecting each ellipse to the centre, added some colour and trails and used my own numbers for velocity and amplitude rather than generating them randomly. The patterns created by the oscillators are sized in relation to one another using the golden ratio.