Playground · 05

Soft Grain

A treatment for photos: one colour, fine grain, and wind.

How it works

The image is mapped into the tones of one colour, from deep shadow to a warm highlight, then covered in fine grain that's heavier in the shadows.

Grain blows off one bright edge in streaks, widening as it travels, like sand off stone. Try it on one of your own photos; it stays in your browser.

// only brightness matters, so any photo gets the same treatment
let L = luminance + (random() - .5) * grain * (.35 + .65 * (1 - luminance));  // heavier in shadows
if (inPlume && random() < plume * wind * streak * streak) L += .45;           // sand blowing off