Window Light & Gobo Patterns
Choose a shadow pattern (blinds, leaves, window panes), then tilt it and soften it on the wall.
AI prompt
Warm afternoon sunlight through venetian blinds casting sharp parallel stripes across a plain plaster wall and a wooden chair, light stripes tilted about 20 degrees, deep soft shadows between, dust motes glowing in the beams, quiet still-life mood, golden colour temperature, shallow depth of field, photographic realism. Pattern variants: dappled leaf shadows moving across a wall, a four-pane window frame casting a cross-shaped shadow, plain soft window light with no pattern. Add a softness note: crisp edges for hard sun, feathered edges for overcast. Negative: artificial studio lights, multiple conflicting shadows, harsh flash, blown highlights.About this pattern
Definition
A gobo is anything placed in front of a light to shape its shadow. In natural light the same effect comes from blinds, window frames or tree leaves, which cast patterned light onto walls and skin.
When to use it
- Patterned light adds depth, time of day and mood to otherwise flat walls and portraits.
- Hard sun gives crisp pattern edges; overcast or distance softens them; angle shows time of day.
- Name the source (blinds, leaves, window frame) and the quality (hard, soft, dappled).
What the controls do
- Four pattern buttons, an Angle slider and a Softness slider.
Motion & timing
- Pattern changes cross-fade over 250ms.
- Reduced motion: it switches instantly.
Tips & variations
- Keep the pattern larger than the subject so the effect survives smaller crops.
- Use soft edges for skin, crisp edges for walls and objects.
Code of this live preview
<div class="bx"><div class="wall"><div class="shade" id="sh"></div><div class="obj"></div></div>
<div class="pre" id="pre" role="group" aria-label="Pattern"><button data-p="blinds" aria-pressed="true">Blinds</button><button data-p="leaves" aria-pressed="false">Leaves</button><button data-p="panes" aria-pressed="false">Panes</button><button data-p="none" aria-pressed="false">Plain</button></div>
<div class="two"><label>Angle <input id="an" type="range" min="-40" max="40" value="-15"></label><label>Softness <input id="so" type="range" min="0" max="12" value="1"></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(300px,100%);display:grid;gap:8px}
.wall{position:relative;height:140px;border-radius:12px;overflow:hidden;background:#efe3cc}
.shade{position:absolute;inset:-70px;background:rgba(40,28,14,.5);transform:rotate(var(--a,-15deg));filter:blur(calc(var(--b,1) * 1px));transition:opacity .25s;-webkit-mask-image:var(--m);mask-image:var(--m);-webkit-mask-size:var(--ms,auto);mask-size:var(--ms,auto)}
.obj{position:absolute;left:44%;bottom:0;width:46px;height:56px;background:#8a5a3a;border-radius:6px 6px 0 0;box-shadow:inset -8px 0 0 rgba(0,0,0,.12)}
.pre{display:flex;gap:5px}.pre button{flex:1;height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:11.5px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.two label{display:grid;gap:3px;font-size:11.5px;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){.shade{transition:none}}const sh=document.getElementById('sh'),an=document.getElementById('an'),so=document.getElementById('so'),bs=[...document.querySelectorAll('#pre button')];
const P={blinds:['repeating-linear-gradient(0deg,#000 0 14px,transparent 14px 34px)','auto'],
leaves:['radial-gradient(ellipse 18px 9px at 25% 30%,#000 98%,transparent),radial-gradient(ellipse 14px 8px at 70% 20%,#000 98%,transparent),radial-gradient(ellipse 20px 10px at 55% 70%,#000 98%,transparent),radial-gradient(ellipse 12px 7px at 15% 80%,#000 98%,transparent),radial-gradient(ellipse 16px 8px at 88% 60%,#000 98%,transparent)','110px 90px'],
panes:['repeating-linear-gradient(0deg,#000 0 7px,transparent 7px 70px),repeating-linear-gradient(90deg,#000 0 7px,transparent 7px 70px)','auto'],
none:['linear-gradient(#000,#000)','auto']};
function set(k){bs.forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.p===k)));sh.style.setProperty('--m',P[k][0]);sh.style.setProperty('--ms',P[k][1]);sh.style.opacity=k==='none'?.18:1;}
function up(){sh.style.setProperty('--a',an.value+'deg');sh.style.setProperty('--b',so.value);}
bs.forEach(b=>b.addEventListener('click',()=>set(b.dataset.p)));an.addEventListener('input',up);so.addEventListener('input',up);set('blinds');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 & Gobo Patterns — 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(300px,100%);display:grid;gap:8px}
.wall{position:relative;height:140px;border-radius:12px;overflow:hidden;background:#efe3cc}
.shade{position:absolute;inset:-70px;background:rgba(40,28,14,.5);transform:rotate(var(--a,-15deg));filter:blur(calc(var(--b,1) * 1px));transition:opacity .25s;-webkit-mask-image:var(--m);mask-image:var(--m);-webkit-mask-size:var(--ms,auto);mask-size:var(--ms,auto)}
.obj{position:absolute;left:44%;bottom:0;width:46px;height:56px;background:#8a5a3a;border-radius:6px 6px 0 0;box-shadow:inset -8px 0 0 rgba(0,0,0,.12)}
.pre{display:flex;gap:5px}.pre button{flex:1;height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:11.5px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.two label{display:grid;gap:3px;font-size:11.5px;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){.shade{transition:none}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="wall"><div class="shade" id="sh"></div><div class="obj"></div></div>
<div class="pre" id="pre" role="group" aria-label="Pattern"><button data-p="blinds" aria-pressed="true">Blinds</button><button data-p="leaves" aria-pressed="false">Leaves</button><button data-p="panes" aria-pressed="false">Panes</button><button data-p="none" aria-pressed="false">Plain</button></div>
<div class="two"><label>Angle <input id="an" type="range" min="-40" max="40" value="-15"></label><label>Softness <input id="so" type="range" min="0" max="12" value="1"></label></div></div>
</div>
<script>
const sh=document.getElementById('sh'),an=document.getElementById('an'),so=document.getElementById('so'),bs=[...document.querySelectorAll('#pre button')];
const P={blinds:['repeating-linear-gradient(0deg,#000 0 14px,transparent 14px 34px)','auto'],
leaves:['radial-gradient(ellipse 18px 9px at 25% 30%,#000 98%,transparent),radial-gradient(ellipse 14px 8px at 70% 20%,#000 98%,transparent),radial-gradient(ellipse 20px 10px at 55% 70%,#000 98%,transparent),radial-gradient(ellipse 12px 7px at 15% 80%,#000 98%,transparent),radial-gradient(ellipse 16px 8px at 88% 60%,#000 98%,transparent)','110px 90px'],
panes:['repeating-linear-gradient(0deg,#000 0 7px,transparent 7px 70px),repeating-linear-gradient(90deg,#000 0 7px,transparent 7px 70px)','auto'],
none:['linear-gradient(#000,#000)','auto']};
function set(k){bs.forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.p===k)));sh.style.setProperty('--m',P[k][0]);sh.style.setProperty('--ms',P[k][1]);sh.style.opacity=k==='none'?.18:1;}
function up(){sh.style.setProperty('--a',an.value+'deg');sh.style.setProperty('--b',so.value);}
bs.forEach(b=>b.addEventListener('click',()=>set(b.dataset.p)));an.addEventListener('input',up);so.addEventListener('input',up);set('blinds');up();
</script>
</body></html>