The darker a square, the more likely an ant on an adjacent square will move to it (this one simple rule creates a complex system). To find colonies, look for small areas with a lot of very dark squares. Colonies may freely merge or split apart. There may be frequently traveled "bridges" and other structure between nearby colonies.
It was more tedious than I initially thought it would be to code this in Scratch.