Several ingredients are needed to view a rainbow. First, the viewer must be between the sun and the rain. The sun must be at a lower angle, so it must be within a few hours of sunrise or sunset. Third, the rainbow will appear at the point opposite of the sun.