The pattern results from the collective behavior of a million agents leaving trails and following them.