Its a little strange, but simple.
Keep dots of different colors close. Keep dots of same color away from each other.