How is a rainbow formed?

These optical illusions require a mix of the right weather, eye direction, and luck.