Lens Vignette Falloff
Darken the corners of a scene with strength and size controls and four presets from none to tunnel.
AI prompt
Landscape photograph of a lone figure on a beach at dusk with a gentle natural lens vignette: the corners falling off softly to deep shadow while the centre stays bright and clear, a smooth gradual transition with no visible ring, warm sky and calm water, 35mm lens at f/1.8, cinematic and quiet. Variants: no vignette, a heavy tunnel-like vignette with dark corners and a small bright centre. Negative: hard-edged circle, grey muddy corners, banding, text, borders. Reduced motion: static image.About this pattern
Definition
A vignette darkens the edges of a frame. Lenses produce it naturally at wide apertures; editors add it on purpose to pull the eye toward the centre. A little feels like atmosphere and a lot feels like looking through a tunnel.
When to use it
- Subtle vignettes sit below about 25 percent strength and start well outside the subject.
- A larger size moves the dark edge outward and softens the transition.
- Keep skin and the main subject inside the clear area.
What the controls do
- Four presets, a Strength slider and a Size slider.
Motion & timing
- The vignette follows the sliders directly.
- Reduced motion: nothing animates.
Tips & variations
- Judge it on a bright, flat area such as a sky; banding and dirty corners show up there first.
- Do not use a vignette to hide a distracting edge; crop instead.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Preset"><button data-p="0" aria-pressed="true">None</button><button data-p="1" aria-pressed="false">Subtle</button><button data-p="2" aria-pressed="false">Heavy</button><button data-p="3" aria-pressed="false">Tunnel</button></div><div class="sc" id="sc"><i class="sky"></i><i class="sea"></i><i class="sun"></i><i class="fg"></i><i class="vg"></i></div><div class="two"><label class="rw">Strength <b id="sv">0%</b><input id="st" type="range" min="0" max="100" value="0"></label><label class="rw">Size <b id="zv">60%</b><input id="sz" type="range" min="20" max="100" value="60"></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}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sc{height:140px;border-radius:12px;position:relative;overflow:hidden}.sc i{position:absolute;display:block}.sky{inset:0 0 45% 0;background:linear-gradient(#f6b27a,#fbe3c6)}.sea{inset:55% 0 0 0;background:linear-gradient(#e8a77a,#4a6f8a)}.sun{left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:#fff6d0;box-shadow:0 0 24px 8px rgba(255,236,170,.9)}.fg{left:30%;bottom:12%;width:10px;height:34px;border-radius:5px 5px 0 0;background:#1f1a22}
.vg{inset:0;background:radial-gradient(ellipse at center,transparent var(--z),rgba(0,0,0,var(--v)) 100%)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const P=[[0,60],[25,55],[60,40],[90,20]],sc=document.getElementById('sc'),st=document.getElementById('st'),sz=document.getElementById('sz'),bs=[...document.querySelectorAll('#pre button')];
function up(){sc.style.setProperty('--v',(st.value/100).toFixed(2));sc.style.setProperty('--z',sz.value+'%');document.getElementById('sv').textContent=st.value+'%';document.getElementById('zv').textContent=sz.value+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(P[+b.dataset.p][0]===+st.value&&P[+b.dataset.p][1]===+sz.value)));}
bs.forEach(b=>b.addEventListener('click',()=>{st.value=P[+b.dataset.p][0];sz.value=P[+b.dataset.p][1];up();}));st.addEventListener('input',up);sz.addEventListener('input',up);up();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>Lens Vignette Falloff — 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}}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sc{height:140px;border-radius:12px;position:relative;overflow:hidden}.sc i{position:absolute;display:block}.sky{inset:0 0 45% 0;background:linear-gradient(#f6b27a,#fbe3c6)}.sea{inset:55% 0 0 0;background:linear-gradient(#e8a77a,#4a6f8a)}.sun{left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:#fff6d0;box-shadow:0 0 24px 8px rgba(255,236,170,.9)}.fg{left:30%;bottom:12%;width:10px;height:34px;border-radius:5px 5px 0 0;background:#1f1a22}
.vg{inset:0;background:radial-gradient(ellipse at center,transparent var(--z),rgba(0,0,0,var(--v)) 100%)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Preset"><button data-p="0" aria-pressed="true">None</button><button data-p="1" aria-pressed="false">Subtle</button><button data-p="2" aria-pressed="false">Heavy</button><button data-p="3" aria-pressed="false">Tunnel</button></div><div class="sc" id="sc"><i class="sky"></i><i class="sea"></i><i class="sun"></i><i class="fg"></i><i class="vg"></i></div><div class="two"><label class="rw">Strength <b id="sv">0%</b><input id="st" type="range" min="0" max="100" value="0"></label><label class="rw">Size <b id="zv">60%</b><input id="sz" type="range" min="20" max="100" value="60"></label></div></div>
</div>
<script>
const P=[[0,60],[25,55],[60,40],[90,20]],sc=document.getElementById('sc'),st=document.getElementById('st'),sz=document.getElementById('sz'),bs=[...document.querySelectorAll('#pre button')];
function up(){sc.style.setProperty('--v',(st.value/100).toFixed(2));sc.style.setProperty('--z',sz.value+'%');document.getElementById('sv').textContent=st.value+'%';document.getElementById('zv').textContent=sz.value+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(P[+b.dataset.p][0]===+st.value&&P[+b.dataset.p][1]===+sz.value)));}
bs.forEach(b=>b.addEventListener('click',()=>{st.value=P[+b.dataset.p][0];sz.value=P[+b.dataset.p][1];up();}));st.addEventListener('input',up);sz.addEventListener('input',up);up();
</script>
</body></html>