Note: This assumes perfectly elastic collisions and particles are same mass.
I made the colored particles cause other particles to become colored on collision.
We also assume no other intermolecular interactions.

Number of Colored Particles

Time