Drag on the canvas to change the incident angle
When light crosses the boundary between two media with different refractive indices, it bends. The angle of refraction depends on the ratio of the indices.
When light travels from a denser to less dense medium (n₁ > n₂), there exists a critical angle beyond which all light is reflected — total internal reflection.