This project stemmed from a physical piece of work I did last year that leveraged a long metal chain and a
drill to try and create a chaotic cirular landscape (by covering the chain in oil paint and spinning it
on a canvas). The chain would kink and then unkink and wind up around the drill bit and scratch the
surface of the canvas.
In an older project called Cortex
I leveraged virtual chains
to visualise neurons, axons and synapses. The code would reasonably efficiently grow chains from a
starting point, mutate chain link properties like length and angle (thus affecting all subsequent links) and
then also kill off leaf links.
I was able to re-purpose this old code and create a much simpler algorithm that aims to 'drag' a chain across
the canvas where each link is 'dipped' in a different colour.
There is no actual physics or kinematics involved, at each step in the simulation we process each link in the
chain, processing a link involves possibly changing the angle some amount.