Cloud Cover & Light Softness
A ball on the ground: raise the cloud cover and the sharp sun shadow melts into soft diffuse light.
AI prompt
Outdoor product photograph of a matte red ball on pale concrete under a thick even overcast sky: very soft almost invisible shadow under the ball, no bright highlight, even gentle light wrapping around the form, saturated colour, low contrast, neutral grey-white background, 85mm lens, shallow depth of field. Variants: clear sky with hard midday sun and a crisp dark shadow, and partly cloudy with a soft-edged shadow. Negative: studio lights, flash, harsh highlights, text, extra objects. Reduced motion: static image.About this pattern
Definition
Clouds act as a giant softbox. With clear sky the sun is a small hard source, so shadows are dark with crisp edges. As cloud thickens, light comes from the whole sky: shadows blur, fade and finally vanish, and contrast drops.
When to use it
- Clear: hard dark shadow, strong highlight, high contrast.
- Thin cloud: softer edges, slightly lighter shadow.
- Overcast: almost no shadow, even soft light, saturated colours.
- Prompts: say hard midday sun or soft overcast light, not just daylight.
What the controls do
- Three presets (Clear, Partly, Overcast) and a Cloud cover slider.
Motion & timing
- Shadow blur, opacity and the sun disc follow the slider directly.
- Reduced motion: nothing animates.
Tips & variations
- Overcast light suits portraits and products; hard sun suits drama and texture.
- Keep the shadow direction constant so only the softness changes.
Code of this live preview
<div class="bx"><div class="sc" id="sc"><i class="sn" id="sn"></i><i class="sh" id="sh"></i><i class="bl" id="bl"></i></div><div class="pre" id="pre" role="group" aria-label="Sky"><button data-p="0" aria-pressed="true">Clear</button><button data-p="1" aria-pressed="false">Partly</button><button data-p="2" aria-pressed="false">Overcast</button></div><label class="rw">Cloud cover <b id="cv">0%</b><input id="cc" type="range" min="0" max="100" value="0"></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}
.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:linear-gradient(var(--sky1),var(--sky2) 58%,#c9c6bd 58%,#b9b6ac)}
.sn{position:absolute;right:14%;top:14%;width:26px;height:26px;border-radius:50%;background:#fff6c8;box-shadow:0 0 22px 8px rgba(255,240,170,.8);opacity:var(--so)}
.bl{position:absolute;left:50%;top:44%;width:56px;height:56px;margin-left:-28px;border-radius:50%;background:radial-gradient(circle at calc(30% + var(--hx)*1%) 28%,rgba(255,255,255,var(--hl)) 0 8%,transparent 30%),radial-gradient(circle at 40% 35%,#e5564a,#9a2a22 85%)}
.sh{position:absolute;left:50%;top:84%;width:70px;height:16px;margin-left:-14px;border-radius:50%;background:rgba(0,0,0,var(--sa));filter:blur(calc(var(--sb)*1px))}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const sc=document.getElementById('sc'),cc=document.getElementById('cc'),bs=[...document.querySelectorAll('#pre button')],P=[0,50,100];
function up(){const c=+cc.value/100,m=(a,b)=>a+(b-a)*c;sc.style.setProperty('--so',(1-c*1.1<0?0:1-c*1.1).toFixed(2));sc.style.setProperty('--sa',m(.55,.04).toFixed(2));sc.style.setProperty('--sb',m(1,16).toFixed(1));sc.style.setProperty('--hl',m(.9,.15).toFixed(2));sc.style.setProperty('--hx',m(0,0));
sc.style.setProperty('--sky1','rgb('+Math.round(m(110,190))+','+Math.round(m(170,196))+','+Math.round(m(230,203))+')');sc.style.setProperty('--sky2','rgb('+Math.round(m(190,214))+','+Math.round(m(220,218))+','+Math.round(m(245,222))+')');
document.getElementById('cv').textContent=cc.value+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(P[+b.dataset.p]===+cc.value)));}
bs.forEach(b=>b.addEventListener('click',()=>{cc.value=P[+b.dataset.p];up();}));cc.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>Cloud Cover & Light Softness — 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}}
.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:linear-gradient(var(--sky1),var(--sky2) 58%,#c9c6bd 58%,#b9b6ac)}
.sn{position:absolute;right:14%;top:14%;width:26px;height:26px;border-radius:50%;background:#fff6c8;box-shadow:0 0 22px 8px rgba(255,240,170,.8);opacity:var(--so)}
.bl{position:absolute;left:50%;top:44%;width:56px;height:56px;margin-left:-28px;border-radius:50%;background:radial-gradient(circle at calc(30% + var(--hx)*1%) 28%,rgba(255,255,255,var(--hl)) 0 8%,transparent 30%),radial-gradient(circle at 40% 35%,#e5564a,#9a2a22 85%)}
.sh{position:absolute;left:50%;top:84%;width:70px;height:16px;margin-left:-14px;border-radius:50%;background:rgba(0,0,0,var(--sa));filter:blur(calc(var(--sb)*1px))}
@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="sn" id="sn"></i><i class="sh" id="sh"></i><i class="bl" id="bl"></i></div><div class="pre" id="pre" role="group" aria-label="Sky"><button data-p="0" aria-pressed="true">Clear</button><button data-p="1" aria-pressed="false">Partly</button><button data-p="2" aria-pressed="false">Overcast</button></div><label class="rw">Cloud cover <b id="cv">0%</b><input id="cc" type="range" min="0" max="100" value="0"></label></div>
</div>
<script>
const sc=document.getElementById('sc'),cc=document.getElementById('cc'),bs=[...document.querySelectorAll('#pre button')],P=[0,50,100];
function up(){const c=+cc.value/100,m=(a,b)=>a+(b-a)*c;sc.style.setProperty('--so',(1-c*1.1<0?0:1-c*1.1).toFixed(2));sc.style.setProperty('--sa',m(.55,.04).toFixed(2));sc.style.setProperty('--sb',m(1,16).toFixed(1));sc.style.setProperty('--hl',m(.9,.15).toFixed(2));sc.style.setProperty('--hx',m(0,0));
sc.style.setProperty('--sky1','rgb('+Math.round(m(110,190))+','+Math.round(m(170,196))+','+Math.round(m(230,203))+')');sc.style.setProperty('--sky2','rgb('+Math.round(m(190,214))+','+Math.round(m(220,218))+','+Math.round(m(245,222))+')');
document.getElementById('cv').textContent=cc.value+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(P[+b.dataset.p]===+cc.value)));}
bs.forEach(b=>b.addEventListener('click',()=>{cc.value=P[+b.dataset.p];up();}));cc.addEventListener('input',up);up();
</script>
</body></html>