Window Light Distance Falloff
Move a subject away from a window and watch the light fall off fast, with a fill card to bring the shadow side back.
AI prompt
Portrait photograph of a woman sitting one metre from a large north-facing window, soft daylight wrapping the left side of her face with a gentle fall-off to a darker right cheek, a white reflector card just out of frame lifting the shadow side slightly, natural skin tones, muted room, shallow depth of field, 85mm lens, calm and honest. Variants: the same pose three metres from the window, dimmer and flatter, and with no fill card for deeper shadows. Negative: flash, harsh sun patches, orange cast, text, plastic skin. Reduced motion: static image.About this pattern
Definition
Light from a window drops quickly with distance: halve the distance and the light is four times stronger, double it and it is a quarter. Close to the window the picture is bright with a strong side-to-side contrast; further back it dims and flattens.
When to use it
- Inverse square rule: brightness is proportional to one over distance squared; each doubling of distance loses two stops.
- Close to the window gives drama and contrast; further away gives dim, even light.
- A white card on the shadow side bounces light back and lifts the contrast down.
What the controls do
- A Distance slider from 0.5 to 4 metres, a Fill card checkbox and a readout in stops.
Motion & timing
- Brightness follows the slider directly.
- Reduced motion: nothing animates.
Tips & variations
- Compose first, then adjust distance in small steps and meter the face, not the room.
- Do not let the window itself be the brightest thing in frame unless you want a silhouette.
Code of this live preview
<div class="bx"><div class="sc" id="sc"><i class="wn"></i><div class="fc" id="fc"></div><div class="hd" id="hd"></div></div><label class="rw">Distance <b id="dv">1.0 m</b><input id="ds" type="range" min="5" max="40" value="10"></label><label class="sw"><input id="fl" type="checkbox"> Fill card on the shadow side</label><p class="out" id="out"></p></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;background:#3a3a40}.wn{position:absolute;left:0;top:14%;bottom:14%;width:14px;background:linear-gradient(#fff,#cfe6ff);box-shadow:0 0 30px 10px rgba(220,235,255,.7)}
.hd{position:absolute;top:50%;width:64px;height:78px;margin:-39px 0 0 -32px;border-radius:50% 50% 46% 46%;background:radial-gradient(ellipse at var(--lx) 45%,rgba(255,235,215,var(--hi)),#c28a68 60%,#3a2418 120%);filter:brightness(var(--br))}.hd::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,transparent 30%,rgba(0,0,0,var(--sh)) 100%)}
.fc{position:absolute;right:8%;top:22%;bottom:22%;width:8px;background:#f4f4f0;border-radius:2px;opacity:0;box-shadow:-6px 0 14px rgba(255,255,255,.35)}.fc.on{opacity:1}
.out{font-size:12px;color:var(--muted)}.out b{color:var(--text)}.sw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const sc=document.getElementById('sc'),hd=document.getElementById('hd'),ds=document.getElementById('ds'),fl=document.getElementById('fl'),fc=document.getElementById('fc');
function up(){const d=ds.value/10,rel=Math.pow(1/d,2),stops=Math.log2(rel),fill=fl.checked?.45:0;hd.style.left=(14+d/4*68)+'%';hd.style.setProperty('--br',Math.max(.28,Math.min(1.05,Math.pow(rel,.45))).toFixed(2));hd.style.setProperty('--hi',Math.max(.25,Math.min(1,rel)).toFixed(2));hd.style.setProperty('--lx',(20+d*4)+'%');hd.style.setProperty('--sh',(Math.max(.1,.62-Math.log2(d+1)*.12)*(1-fill)).toFixed(2));fc.classList.toggle('on',fl.checked);
document.getElementById('dv').textContent=d.toFixed(1)+' m';document.getElementById('out').innerHTML='<b>'+(stops>=0?'+':'')+stops.toFixed(1)+' stops</b> compared with 1 metre'+(fl.checked?', shadow side lifted by the fill card':'')+'.';}
ds.addEventListener('input',up);fl.addEventListener('change',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>Window Light Distance 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;background:#3a3a40}.wn{position:absolute;left:0;top:14%;bottom:14%;width:14px;background:linear-gradient(#fff,#cfe6ff);box-shadow:0 0 30px 10px rgba(220,235,255,.7)}
.hd{position:absolute;top:50%;width:64px;height:78px;margin:-39px 0 0 -32px;border-radius:50% 50% 46% 46%;background:radial-gradient(ellipse at var(--lx) 45%,rgba(255,235,215,var(--hi)),#c28a68 60%,#3a2418 120%);filter:brightness(var(--br))}.hd::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,transparent 30%,rgba(0,0,0,var(--sh)) 100%)}
.fc{position:absolute;right:8%;top:22%;bottom:22%;width:8px;background:#f4f4f0;border-radius:2px;opacity:0;box-shadow:-6px 0 14px rgba(255,255,255,.35)}.fc.on{opacity:1}
.out{font-size:12px;color:var(--muted)}.out b{color:var(--text)}.sw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="sc" id="sc"><i class="wn"></i><div class="fc" id="fc"></div><div class="hd" id="hd"></div></div><label class="rw">Distance <b id="dv">1.0 m</b><input id="ds" type="range" min="5" max="40" value="10"></label><label class="sw"><input id="fl" type="checkbox"> Fill card on the shadow side</label><p class="out" id="out"></p></div>
</div>
<script>
const sc=document.getElementById('sc'),hd=document.getElementById('hd'),ds=document.getElementById('ds'),fl=document.getElementById('fl'),fc=document.getElementById('fc');
function up(){const d=ds.value/10,rel=Math.pow(1/d,2),stops=Math.log2(rel),fill=fl.checked?.45:0;hd.style.left=(14+d/4*68)+'%';hd.style.setProperty('--br',Math.max(.28,Math.min(1.05,Math.pow(rel,.45))).toFixed(2));hd.style.setProperty('--hi',Math.max(.25,Math.min(1,rel)).toFixed(2));hd.style.setProperty('--lx',(20+d*4)+'%');hd.style.setProperty('--sh',(Math.max(.1,.62-Math.log2(d+1)*.12)*(1-fill)).toFixed(2));fc.classList.toggle('on',fl.checked);
document.getElementById('dv').textContent=d.toFixed(1)+' m';document.getElementById('out').innerHTML='<b>'+(stops>=0?'+':'')+stops.toFixed(1)+' stops</b> compared with 1 metre'+(fl.checked?', shadow side lifted by the fill card':'')+'.';}
ds.addEventListener('input',up);fl.addEventListener('change',up);up();
</script>
</body></html>