Each speck is a simulated silver-halide crystal. Light passes through the lens model, then photons hit crystals at random (Poisson) in proportion to the local light and the crystal's size. A crystal that catches k photons holds a latent image; the developer turns it into silver (or dye). The negative is then printed on a modelled paper or scanned.