Diffraction

Simulator

AI generated demo image

Airy disc 
Pixel pitch 
Sharpest stop 
wide openf/22
Lens
Sensor
Recording
Try these
Spot size on the sensor against f-number: aberrations falling, diffraction rising, their sum, the pixel size and the chosen aperture

Why f/22 is softer than f/8

Stopping down fixes the faults in a lens right up to the point where it starts causing a different one. Light bends around the edge of the iris, and the smaller the hole the more it spreads.