The droplets are initially neutral. Their colors are computed from the viewing geometry: sunlight enters the droplets, and only rays returning to the eye at the rainbow angle become visible.