Dappled Light Through Leaves
Bright sun patches on shaded ground, with density, softness and a gentle wind sway.
AI prompt
Photograph of a quiet forest path in summer, warm sunlight breaking through the canopy into scattered soft-edged bright patches on the dark green-brown ground and across a wooden bench, overlapping dapples of different sizes, deep cool shade between them, gentle haze in the air, 50mm lens, shallow depth of field, peaceful and fresh. Variants: sparse large patches from a thin canopy and a dense fine pattern from thick leaves. Negative: harsh hard-edged shadows, flash, oversaturation, people, text. Reduced motion: static image.About this pattern
Definition
Dappled light is sunlight broken into scattered bright patches by leaves overhead. Each patch is an image of the gap between leaves, so the patches are round-ish, overlap, and blur more the further the leaves are from the ground.
When to use it
- Many small patches read as a canopy; few large patches read as a thin screen of leaves.
- Softness grows with the distance between the leaves and the ground.
- Wind makes the pattern shimmer, which signals life and summer warmth.
- Keep the shade dark and the patches warm for contrast.
What the controls do
- Density and Softness sliders and a Wind checkbox.
Motion & timing
- Wind sways the pattern slowly in a loop.
- Reduced motion: wind is off and cannot be switched on.
Tips & variations
- Use screen blending so patches brighten the ground rather than cover it.
- Subjects in dappled light need exposure care: highlights clip quickly.
Code of this live preview
<div class="bx"><div class="fo" id="fo"><div class="dp" id="dp"></div><i class="bn"></i></div><div class="two"><label class="rw">Density <b id="dv">20</b><input id="de" type="range" min="6" max="40" value="20"></label><label class="rw">Softness <b id="sv">4px</b><input id="sf" type="range" min="0" max="12" value="4"></label></div><label class="sw"><input id="wd" type="checkbox"> Wind</label></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}
.fo{height:130px;border-radius:12px;position:relative;overflow:hidden;background:linear-gradient(#3f4a33,#2a3224);isolation:isolate}.bn{position:absolute;left:20%;right:20%;bottom:20%;height:12px;border-radius:3px;background:#8a6a45;box-shadow:0 18px 0 -2px #5c4630}.dp{position:absolute;inset:-14px;mix-blend-mode:screen;filter:blur(var(--s))}.dp i{position:absolute;display:block;border-radius:50%;background:radial-gradient(circle,rgba(255,236,170,.95),rgba(255,220,130,.5) 70%,transparent)}.dp.sw{animation:sway 5s ease-in-out infinite alternate}@keyframes sway{from{transform:translate(-6px,2px)}to{transform:translate(6px,-3px)}}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}@media (prefers-reduced-motion:reduce){.dp.sw{animation:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const dp=document.getElementById('dp'),de=document.getElementById('de'),sf=document.getElementById('sf'),wd=document.getElementById('wd'),calm=matchMedia('(prefers-reduced-motion:reduce)').matches;if(calm){wd.disabled=true;}
function build(){let s=7;const r=()=>(s=(s*1664525+1013904223)%4294967296)/4294967296,n=+de.value,sz=Math.max(12,58-n);dp.innerHTML=Array.from({length:n},()=>{const w=sz*(.6+r()*1.1),h=w*(.6+r()*.6);return '<i style="left:'+(r()*100).toFixed(1)+'%;top:'+(r()*100).toFixed(1)+'%;width:'+w.toFixed(0)+'px;height:'+h.toFixed(0)+'px"></i>';}).join('');}
function up(){dp.style.setProperty('--s',sf.value+'px');dp.classList.toggle('sw',wd.checked&&!calm);document.getElementById('dv').textContent=de.value;document.getElementById('sv').textContent=sf.value+'px';}
de.addEventListener('input',()=>{build();up();});sf.addEventListener('input',up);wd.addEventListener('change',up);build();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>Dappled Light Through Leaves — 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}
.fo{height:130px;border-radius:12px;position:relative;overflow:hidden;background:linear-gradient(#3f4a33,#2a3224);isolation:isolate}.bn{position:absolute;left:20%;right:20%;bottom:20%;height:12px;border-radius:3px;background:#8a6a45;box-shadow:0 18px 0 -2px #5c4630}.dp{position:absolute;inset:-14px;mix-blend-mode:screen;filter:blur(var(--s))}.dp i{position:absolute;display:block;border-radius:50%;background:radial-gradient(circle,rgba(255,236,170,.95),rgba(255,220,130,.5) 70%,transparent)}.dp.sw{animation:sway 5s ease-in-out infinite alternate}@keyframes sway{from{transform:translate(-6px,2px)}to{transform:translate(6px,-3px)}}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}@media (prefers-reduced-motion:reduce){.dp.sw{animation:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="fo" id="fo"><div class="dp" id="dp"></div><i class="bn"></i></div><div class="two"><label class="rw">Density <b id="dv">20</b><input id="de" type="range" min="6" max="40" value="20"></label><label class="rw">Softness <b id="sv">4px</b><input id="sf" type="range" min="0" max="12" value="4"></label></div><label class="sw"><input id="wd" type="checkbox"> Wind</label></div>
</div>
<script>
const dp=document.getElementById('dp'),de=document.getElementById('de'),sf=document.getElementById('sf'),wd=document.getElementById('wd'),calm=matchMedia('(prefers-reduced-motion:reduce)').matches;if(calm){wd.disabled=true;}
function build(){let s=7;const r=()=>(s=(s*1664525+1013904223)%4294967296)/4294967296,n=+de.value,sz=Math.max(12,58-n);dp.innerHTML=Array.from({length:n},()=>{const w=sz*(.6+r()*1.1),h=w*(.6+r()*.6);return '<i style="left:'+(r()*100).toFixed(1)+'%;top:'+(r()*100).toFixed(1)+'%;width:'+w.toFixed(0)+'px;height:'+h.toFixed(0)+'px"></i>';}).join('');}
function up(){dp.style.setProperty('--s',sf.value+'px');dp.classList.toggle('sw',wd.checked&&!calm);document.getElementById('dv').textContent=de.value;document.getElementById('sv').textContent=sf.value+'px';}
de.addEventListener('input',()=>{build();up();});sf.addEventListener('input',up);wd.addEventListener('change',up);build();up();
</script>
</body></html>