Film Grain & Light Leaks
Grain, vignette and a coloured light leak over a photo, with four presets from clean to expired film.
AI prompt
Film photograph of a quiet seaside road at sunset shot on expired 35mm colour negative film: visible medium grain especially in the shadows, slightly lifted blacks, warm faded colours with a green-yellow cast, soft dark vignette in the corners, an orange-pink light leak bleeding in from the left edge, tiny dust specks, slightly soft focus, candid framing, authentic analog look. Variants: clean modern film (fine grain, neutral colour), instant film (square frame, creamy washed colours, strong vignette, white border). Negative: digital noise patterns, HDR sharpening, perfect symmetry, heavy filters, watermarks.About this pattern
Definition
Analog film leaves traces: grain from the silver crystals, darker corners from the lens, and orange or pink light leaks where light entered the camera body. These flaws are what makes digital images feel photographed.
When to use it
- Grain adds texture and hides digital smoothness; vignette focuses the eye; light leaks add warmth and nostalgia.
- Keep effects subtle for realism and stronger for a deliberate lo-fi look.
- Name the film or camera type (35mm, expired Portra, instant film) so a model can combine the traits.
What the controls do
- Presets Clean, 35mm, Expired and Instant; sliders for Grain, Vignette and Leak; leak side selector.
Motion & timing
- Effects update live with the sliders.
- Reduced motion: no difference.
Tips & variations
- Grain size should stay constant relative to the image, not shrink with the display, or it disappears on small screens.
- Do not place text over heavy leaks.
Code of this live preview
<div class="bx"><div class="fr" id="fr"><div class="im"><i class="sk"></i><i class="sn"></i><i class="rd"></i><i class="bd"></i></div><div class="gr"></div><div class="lk"></div><div class="vg"></div></div>
<div class="pre" id="pre" role="group" aria-label="Preset"><button data-p="0">Clean</button><button data-p="1" aria-pressed="true">35mm</button><button data-p="2">Expired</button><button data-p="3">Instant</button></div>
<div class="three"><label>Grain <input id="g" type="range" min="0" max="100" value="45"></label><label>Vignette <input id="v" type="range" min="0" max="100" value="40"></label><label>Leak <input id="l" type="range" min="0" max="100" value="30"></label></div></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
.bx{width:min(320px,100%);display:grid;gap:8px}
.fr{position:relative;height:150px;border-radius:12px;overflow:hidden;background:#222;isolation:isolate}
.im{position:absolute;inset:0;filter:saturate(var(--sat,1)) sepia(var(--sep,0)) contrast(var(--con,1))}
.sk{position:absolute;inset:0;background:linear-gradient(#f0a063,#f7d8a8 58%,#46596a 58%)}
.sn{position:absolute;left:44%;top:30px;width:32px;height:32px;border-radius:50%;background:#fff3cf}
.rd{position:absolute;left:0;right:0;top:58%;bottom:0;background:linear-gradient(#55616f,#2f3944)}
.bd{position:absolute;left:12%;bottom:24%;width:40px;height:34px;background:#2a2622;clip-path:polygon(0 100%,0 40%,50% 0,100% 40%,100% 100%)}
.gr{position:absolute;inset:0;opacity:var(--g,.45);background-image:var(--noise,none);background-size:70px 70px;mix-blend-mode:overlay;pointer-events:none}
.lk{position:absolute;inset:0;opacity:var(--l,.3);mix-blend-mode:screen;pointer-events:none;background:radial-gradient(ellipse 60% 90% at var(--lx,0%) 40%,rgba(255,120,50,.95),rgba(255,60,120,.5) 50%,transparent 80%)}
.vg{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle,transparent 45%,rgba(0,0,0,var(--v,.4)) 110%)}
.pre{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer;padding:0}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.three label{display:grid;gap:3px;font-size:11px;color:var(--muted)}input[type=range]{width:100%;accent-color:#171717}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none}}const fr=document.getElementById('fr'),g=document.getElementById('g'),v=document.getElementById('v'),l=document.getElementById('l'),bs=[...document.querySelectorAll('#pre button')];
const cv=document.createElement('canvas');cv.width=cv.height=70;const x=cv.getContext('2d'),d=x.createImageData(70,70);for(let i=0;i<d.data.length;i+=4){const q=Math.random()*255;d.data[i]=d.data[i+1]=d.data[i+2]=q;d.data[i+3]=255;}x.putImageData(d,0,0);fr.style.setProperty('--noise','url('+cv.toDataURL()+')');
const P=[[8,10,0,1,0,1],[45,40,30,.95,.05,1.05],[70,55,55,.8,.28,.95],[35,70,15,.85,.18,.9]];
function up(){fr.style.setProperty('--g',g.value/100);fr.style.setProperty('--v',(v.value/100*.8).toFixed(2));fr.style.setProperty('--l',(l.value/100).toFixed(2));}
function pre(k){const p=P[k];g.value=p[0];v.value=p[1];l.value=p[2];const im=fr.querySelector('.im');im.style.setProperty('--sat',p[3]);im.style.setProperty('--sep',p[4]);im.style.setProperty('--con',p[5]);fr.style.setProperty('--lx',k===3?'100%':'0%');bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===k)));up();}
bs.forEach(b=>b.addEventListener('click',()=>pre(+b.dataset.p)));[g,v,l].forEach(e=>e.addEventListener('input',up));pre(1);One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Film Grain & Light Leaks — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.bx{width:min(320px,100%);display:grid;gap:8px}
.fr{position:relative;height:150px;border-radius:12px;overflow:hidden;background:#222;isolation:isolate}
.im{position:absolute;inset:0;filter:saturate(var(--sat,1)) sepia(var(--sep,0)) contrast(var(--con,1))}
.sk{position:absolute;inset:0;background:linear-gradient(#f0a063,#f7d8a8 58%,#46596a 58%)}
.sn{position:absolute;left:44%;top:30px;width:32px;height:32px;border-radius:50%;background:#fff3cf}
.rd{position:absolute;left:0;right:0;top:58%;bottom:0;background:linear-gradient(#55616f,#2f3944)}
.bd{position:absolute;left:12%;bottom:24%;width:40px;height:34px;background:#2a2622;clip-path:polygon(0 100%,0 40%,50% 0,100% 40%,100% 100%)}
.gr{position:absolute;inset:0;opacity:var(--g,.45);background-image:var(--noise,none);background-size:70px 70px;mix-blend-mode:overlay;pointer-events:none}
.lk{position:absolute;inset:0;opacity:var(--l,.3);mix-blend-mode:screen;pointer-events:none;background:radial-gradient(ellipse 60% 90% at var(--lx,0%) 40%,rgba(255,120,50,.95),rgba(255,60,120,.5) 50%,transparent 80%)}
.vg{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle,transparent 45%,rgba(0,0,0,var(--v,.4)) 110%)}
.pre{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer;padding:0}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.three label{display:grid;gap:3px;font-size:11px;color:var(--muted)}input[type=range]{width:100%;accent-color:#171717}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="fr" id="fr"><div class="im"><i class="sk"></i><i class="sn"></i><i class="rd"></i><i class="bd"></i></div><div class="gr"></div><div class="lk"></div><div class="vg"></div></div>
<div class="pre" id="pre" role="group" aria-label="Preset"><button data-p="0">Clean</button><button data-p="1" aria-pressed="true">35mm</button><button data-p="2">Expired</button><button data-p="3">Instant</button></div>
<div class="three"><label>Grain <input id="g" type="range" min="0" max="100" value="45"></label><label>Vignette <input id="v" type="range" min="0" max="100" value="40"></label><label>Leak <input id="l" type="range" min="0" max="100" value="30"></label></div></div>
</div>
<script>
const fr=document.getElementById('fr'),g=document.getElementById('g'),v=document.getElementById('v'),l=document.getElementById('l'),bs=[...document.querySelectorAll('#pre button')];
const cv=document.createElement('canvas');cv.width=cv.height=70;const x=cv.getContext('2d'),d=x.createImageData(70,70);for(let i=0;i<d.data.length;i+=4){const q=Math.random()*255;d.data[i]=d.data[i+1]=d.data[i+2]=q;d.data[i+3]=255;}x.putImageData(d,0,0);fr.style.setProperty('--noise','url('+cv.toDataURL()+')');
const P=[[8,10,0,1,0,1],[45,40,30,.95,.05,1.05],[70,55,55,.8,.28,.95],[35,70,15,.85,.18,.9]];
function up(){fr.style.setProperty('--g',g.value/100);fr.style.setProperty('--v',(v.value/100*.8).toFixed(2));fr.style.setProperty('--l',(l.value/100).toFixed(2));}
function pre(k){const p=P[k];g.value=p[0];v.value=p[1];l.value=p[2];const im=fr.querySelector('.im');im.style.setProperty('--sat',p[3]);im.style.setProperty('--sep',p[4]);im.style.setProperty('--con',p[5]);fr.style.setProperty('--lx',k===3?'100%':'0%');bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===k)));up();}
bs.forEach(b=>b.addEventListener('click',()=>pre(+b.dataset.p)));[g,v,l].forEach(e=>e.addEventListener('input',up));pre(1);
</script>
</body></html>