filled: spots of A. rings: spots of B. White: G + H, the moiré.
Dots: every product of spots near zero. Dashed: coarse enough to be a moiré.
Two stacked transparencies pass the product of their transmittances. For two sinusoidal gratings the product is a sum and a difference:
The sum is finer than either grating and the difference coarser. Anything that cannot resolve the gratings, an eye at a distance or a lens slightly out of focus, removes both of them and the sum, and what is left is the difference. The moiré is not in either layer. It is the low-frequency part of their product.
For line gratings of pitches and at angle , the difference vector has length
At this is the beat, ; at it is . The fringes run perpendicular to the difference vector, which for two identical gratings means almost perpendicular to the lines themselves, bisecting the obtuse angle between them.
Translating layer by shifts its phase by of a period, and the moiré, being a difference of phases, shifts by the same fraction of its own period. The fringes move times as far as the layer. For pitches of 10 and 11 that is ten: the principle of the vernier, and of moiré strain measurement, where a deformation too small to see moves fringes large enough to count.
Sharp lines have harmonics, and every product of a harmonic of one layer with a harmonic of the other lands somewhere. When the pitches are near a ratio of two, lands near zero and is the moiré you see; the first-order formula predicts something finer than the lines. Sweep the pitch ratio and the visible period diverges at every simple fraction.
A line of duty has harmonics proportional to , which vanish whenever is an integer. At a duty of one half every even harmonic is zero, and every moiré that needs one disappears.
Two projectors add light instead of multiplying it. A sum of two Fourier series has no cross terms, so no difference frequency. The bands visible at full sharpness are a beat in local contrast, and blurring past the pitch leaves a uniform field. Measured, the coarse structure that survives is one ten-thousandth of what survives when the same layers are stacked.
Two identical triangular lattices twisted by form a triangular superlattice of constant . With carbon's nm and that is 12.8 nm, the superlattice of magic-angle graphene, whose flat electronic bands produce correlated insulating and superconducting states. The playground reproduces the geometry and nothing more; the magic angle itself depends on the coupling between the layers.
A display samples on a lattice of pixels, and a pattern with frequencies above half the pixel frequency folds back below it. A single grating of pitch 3.1 px drawn without antialiasing shows a 31 px pattern: its third harmonic beating against the pixels. Drawing each pixel with the ink it actually covers makes the pixel a box filter, whose zeros fall at multiples of the pixel frequency, exactly where the frequencies that would fold to near zero sit. The pattern falls by a factor of about thirty. The same folding is why a camera pointed at a screen records moiré the eye does not see.
Geometric optics only: gratings near the wavelength of light diffract, and none of that is here. The viewer is a Gaussian blur, where the eye is a band-pass filter whose peak moves with viewing distance. Ring moirés are predicted locally and fail within about a pitch of a centre. Each of these is listed, with what would falsify it, in the assumptions panel.
Every predicted period in the calibration is checked against a Fourier transform of rendered pixels, which shares nothing with the prediction but the definition of a layer.