The science
Refraction. Snell's law n1 sinθ1 = n2 sinθ2. Unpolarised reflectance is the mean of the Fresnel s and p terms,
Rs=((n1cosθ1-n2cosθ2)/(n1cosθ1+n2cosθ2))², Rp=((n2cosθ1-n1cosθ2)/(n2cosθ1+n1cosθ2))².
Critical angle θc = asin(n2/n1) (n1>n2); Brewster angle atan(n2/n1) (Rp=0).
Thin lens. 1/f = 1/do + 1/di, m = -di/do. Each ray is bent by u' = u - y/f (paraxial). Sign: di < 0 means a virtual image. Real lenses add aberrations that are ignored here.
Diffraction. Fraunhofer (far field): I = I0 sinc²(πa sinθ/λ) and for two slits times cos²(πd sinθ/λ). First minimum at sinθ = λ/a.
The wave picture on the left sums 7 Huygens point sources per slit with a 1/√r fall-off; its scale (pixels per micrometre) is chosen to fit the screen, wavelengths are true to the slit size ratios, but the scene is not a metre-scale experiment.
Art: the bench backdrop, lens and laser pointer sprites were rendered in Blender (Cycles) and drawn on the Canvas; all optics is computed in the page.
Simplifications: scalar waves, no dispersion (n is constant with colour), no absorption, paraxial lens. Colours of wavelengths are an approximate display mapping.