A ray of light is a narrow beam of light that travels in a straight line. It is formed when light from a source, such as the sun or a light bulb, is reflected or refracted by an object. The width of a ray of light is determined by the size of the light source and the distance from the source to the object. Rays of light can be used to study the properties of light, such as its wavelength and speed.