Lenswright

Build a camera lens and see the photo it takes.

Drag a glass surface and the rays, the blur and the colour fringes in the photo change with it. Every ray is traced in your browser.

Night street photo taken with the bundled double Gauss lens at f/2

Aperture ringf/2
Focus ring2 metres

Prescription

Lens prescription: one row per surface
#Radius mmThickness mmGlass afterSemi-diameter mm

Reading the bench

Rays are drawn for three field heights, in the three wavelengths lens designers use. When blue, yellow and red rays reach the sensor line at different points, that is colour error. Violet dots on the bottom rail bend a surface. Diamonds on the axis change a thickness. Arrow keys work on a focused dot, Shift for ten times larger steps.

How it's built