Another in a series: vimeo.com/album/1505429 10 particles move around linearly at various constant speeds, bouncing off the sides. For each pixel, calculate the distance from the pixel to each particle. Sort these distances to get d_1, d_2, ..., d_n. Find the average z of d_2/d_1, d_3/d_2, ... . Find the minimum difference k=|d_j - z d_k|, where j and k run over 1 to 10. Color the pixel via an increasing function of k.
This post was originally on Google+