<P> In optics, a prism is a transparent optical element with flat, polished surfaces that refract light . At least two of the flat surfaces must have an angle between them . The exact angles between the surfaces depend on the application . The traditional geometrical shape is that of a triangular prism with a triangular base and rectangular sides, and in colloquial use "prism" usually refers to this type . Some types of optical prism are not in fact in the shape of geometric prisms . Prisms can be made from any material that is transparent to the wavelengths for which they are designed . Typical materials include glass, plastic, and fluorite . </P> <P> A dispersive prism can be used to break light up into its constituent spectral colors (the colors of the rainbow). Furthermore, prisms can be used to reflect light, or to split light into components with different polarizations . </P> <P> Light changes speed as it moves from one medium to another (for example, from air into the glass of the prism). This speed change causes the light to be refracted and to enter the new medium at a different angle (Huygens principle). The degree of bending of the light's path depends on the angle that the incident beam of light makes with the surface, and on the ratio between the refractive indices of the two media (Snell's law). The refractive index of many materials (such as glass) varies with the wavelength or color of the light used, a phenomenon known as dispersion . This causes light of different colors to be refracted differently and to leave the prism at different angles, creating an effect similar to a rainbow . This can be used to separate a beam of white light into its constituent spectrum of colors . A similar separation happens with iridescent materials, such as a soap bubble . Prisms will generally disperse light over a much larger frequency bandwidth than diffraction gratings, making them useful for broad - spectrum spectroscopy . Furthermore, prisms do not suffer from complications arising from overlapping spectral orders, which all gratings have . </P>

Where could have the colors produced by a prism come from