Examples /

Diffraction aperture

Coherent waves from a slit array interfere into colored diffraction bands.

Initializing WebGPUwgpu-kit 2.2.0

Move to alter slit spacing. The control changes how many coherent apertures contribute.

How it works

The kernel sums complex amplitudes from a finite, equally spaced slit array for three wavelengths, then squares their magnitudes to obtain intensity. A single-slit sinc envelope modulates the result. It is a dimensionless far-field model, not a calibrated optical instrument.

Read the related guide →

Search concepts, APIs, and examples