A rainbow can be produced using a prism. Another way of producing a rainbow is to dip a mirror inside water, keeping it inclined along the wall of a tumbler. The light coming from water after reflecting from the mirror will give a rainbow.