You choose the color on resolution. Your opponent does not get to respond between the color choice and the damage happening. They need to use any damage prevention they want before you choose a color.