A man sits on a beach staring out into the ocean where a rainbow is beginning to form .