Damn, exy, I can't find the original article I found this video in. It had a diagram laying out how each one chose its position in the shape, and how they kept track of their relation to each other and the shape. You could have programmed your own dong-swarm.