50 particles move linearly at constant speeds, bouncing off edges. For each pixel, calculate the distance from the pixel to each particle. Let d0,d1,d2,...,d50 be those distance, sorted from smallest to largest. If d25/d24>d20/d19, color the pixel white; else color it black.
Part of this album of similar videos:
distance function videos