27:18Gemini 4 Hydrogen: Cheaper Tokens, More Expensive Answers?
Nov 13, 2026 · YouTube
18:40ERNIE 5.5 Flash Preview vs GLM 5.3 Flash: Baidu's new model is very impressive!
Nov 11, 2026 · YouTube
36:22Fable 5.2 robbing me blind, plus: Nex AGI's N2.6 vs GLM 5.3 Flash
Nov 11, 2026 · YouTube
14:03Gemini 4 Carbon: Can it handle my challenges? (First look with one-shot coding tests)
Nov 10, 2026 · YouTube
47:51Ranking major U.S. Open-Weights Models. (Where does Ripple 65B fit in?)
Nov 6, 2026 · YouTube
10:57"Crouton Alpha": the latest super-efficient coding model by Meta?
Nov 3, 2026 · YouTube
38:58Testing Particle-1: a post-trained DeepSeek V4.1 Flash specializing in coding and efficiency
Oct 28, 2026 · YouTube
22:14GPT-6.1 Terra Pro vs Terra: How Much Better Is Pro?
Oct 27, 2026 · YouTube
29:55Kimi K3.1 Pro Looked Incredible. Then I Kept Testing.
Oct 26, 2026 · YouTube
31:28Is this company reselling GPT Sol 6.1 at a loss (for non-agentic/text-only)?🤔 Is this sustainable?
Oct 20, 2026 · YouTube
17:58Nemotron 3.5 Super VL vs Opus 5.5: Testing NVIDIA’s new coding juggernaut
Oct 15, 2026 · YouTube
16:04Testing a *massive* new open-weights model 🤯: Muse Spark Open (vs. Nemotron, Opus 5.5, and more)
Oct 15, 2026 · YouTube
16:43Gemini 4 Argon: Great 🐈 Animation, but a broken escalator. (Coding challenge vs Opus 5.5, Sol 6.1)
Oct 13, 2026 · YouTube
16:37Meta's new "Muse Wonder" AI is impressive... but can it compete with Anthropic's models?
Oct 12, 2026 · YouTube
11:12WOW... Haiku 5.5 is very impressive. RIP OpenAI?
Oct 7, 2026 · YouTube
22:47Mistral Large 4 Is Cheap. But Is It Good Enough to Compete?
Oct 6, 2026 · YouTube
22:02Is Pareto 26.10 Preview Just Routing to GPT Sol? I Tested It Against Sol 6.1 Pro
Oct 1, 2026 · YouTube
11:22I Tested Sonnet 5.5 Against Opus 5.5. Is It Actually Cheaper?
Sep 28, 2026 · YouTube
19:21I Tested the Stealth "Space Bunny Alpha" Model Before It Went Offline
Sep 23, 2026 · YouTube
You build physics toys, and you have held an umbrella in a gale.
Build me a single HTML page: a person holding an umbrella in wind that keeps getting stronger.
data: URIs are fine.localStorage, sessionStorage, cookies or indexedDB — sandboxed frame, they throw.html block.One paragraph, before the file: what the canopy is made of in your code, what inversion is as a state change, and what decides when it happens.
The single fenced html block.
Where it looks right and where it looks wrong. Everyone who has held an umbrella knows what one does in wind, so say what yours gets wrong before I find it.
The canopy is a row of spring-driven rib tips joined by an elastic cross-section, drawn as fabric over a hinged shaft. Wind pressure bends the ribs and torques the shaft against the person’s grip; sustained overload changes the canopy from its normal curved shape to an inverted one, giving the springs a new shape to snap toward. A separate grip limit decides when the umbrella escapes. These are deliberately simplified forces and thresholds, not a cloth or structural-engineering simulation.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Holding on — an umbrella in rising wind</title>
<style>
:root { color-scheme: dark; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #11232c; color: #e9f1ed; }
.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
header { padding: 20px 26px 12px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
h1 { margin: 0; font-size: clamp(20px,3vw,30px); font-weight: 550; letter-spacing: -.04em; }
.eyebrow { color: #a3bbb9; font-size: 10px; letter-spacing: .2em; margin-bottom: 6px; }
.subtitle { color: #a3bbb9; font-size: 12px; margin-top: 7px; }
.readout { text-align: right; white-space: nowrap; }
#speed { font-size: 36px; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.unit { color: #adc4bf; font-size: 12px; }
main { position: relative; flex: 1; min-height: 200px; overflow: hidden; }
canvas { width: 100%; height: 100%; display: block; }
.caption { position: absolute; top: 12px; left: 26px; pointer-events: none; }
#state { font-size: 12px; color: #d5e7df; letter-spacing: .08em; text-transform: uppercase; }
#detail { margin-top: 7px; color: #92acae; font-size: 12px; max-width: 260px; line-height: 1.5; }
footer { background: #162d35; border-top: 1px solid #355059; padding: 16px 26px 18px; }
.controls { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.wind-control { flex: 1; min-width: 200px; }
label { display: flex; justify-content: space-between; font-size: 12px; color: #bbd0c9; margin-bottom: 8px; }
input { width: 100%; accent-color: #ecc177; cursor: ew-resize; }
.buttons { display: flex; gap: 8px; flex-wrap: wrap; }
button { background: #213e47; color: #e5eee9; border: 1px solid #567077; border-radius: 6px; padding: 10px 13px; font: inherit; font-size: 12px; cursor: pointer; }
button:hover { background: #33525a; }
button:focus-visible, input:focus-visible { outline: 2px solid #ecc177; outline-offset: 4px; }
button[aria-pressed="true"] { color: #f5d299; border-color: #d2a96b; }
.legend { color: #92acae; font-size: 11px; line-height: 1.5; margin-top: 12px; }
.meter { display: inline-block; width: 72px; height: 4px; background: #3b5359; margin: 0 8px 2px; }
#load { display: block; width: 0%; height: 100%; background: #ecc177; }
@media(max-width: 560px) {
header { padding: 14px 16px 8px; }
footer { padding: 12px 16px; }
.caption { left: 16px; }
.controls { gap: 10px; }
.buttons { width: 100%; }
button { flex: 1; }
.subtitle { max-width: 190px; }
#speed { font-size: 30px; }
}
</style>
</head>
<body>
<div class="app">
<header>
<div>
<div class="eyebrow">A SMALL WEATHER EXPERIMENT</div>
<h1>Holding on.</h1>
<div class="subtitle">One person. One umbrella. An increasingly bad idea.</div>
</div>
<div class="readout"><span id="speed">18</span> <span class="unit">km/h →</span></div>
</header>
<main>
<canvas id="scene" role="img" aria-label="Animated side view of a person bracing against wind with a flexible umbrella."></canvas>
<div class="caption">
<div id="state" role="status">Holding steady</div>
<div id="detail">The wind is rising. Pull the slider back to give them a break.</div>
</div>
</main>
<footer>
<div class="controls">
<div class="wind-control">
<label for="wind"><span>Wind setting</span><span id="setting">18 km/h</span></label>
<input id="wind" type="range" min="0" max="140" step="1" value="18" aria-label="Wind setting in kilometres per hour">
</div>
<div class="buttons">
<button id="auto" aria-pressed="true">Rising wind: on</button>
<button id="new">New umbrella</button>
<button id="reset">Start over</button>
</div>
</div>
<div class="legend">
Grip load <span class="meter"><span id="load"></span></span><span id="force">0 N</span>
· ← / → change wind; space pauses the rise.
Gusts fluctuate around your setting. Lower wind lets an attached canopy recover.
</div>
</footer>
</div>
<script>
(() => {
"use strict";
const canvas = document.getElementById("scene");
const ctx = canvas.getContext("2d");
const slider = document.getElementById("wind");
const speedEl = document.getElementById("speed");
const settingEl = document.getElementById("setting");
const stateEl = document.getElementById("state");
const detailEl = document.getElementById("detail");
const loadEl = document.getElementById("load");
const forceEl = document.getElementById("force");
const autoBtn = document.getElementById("auto");
const clamp = (x,a,b) => Math.max(a,Math.min(b,x));
const mix = (a,b,t) => a+(b-a)*t;
let width=1000, height=550, scale=1, ground=480, personX=370;
let base=18, wind=18, rising=true, time=0, lean=0, effort=0;
let umbrella, last=performance.now(), accumulator=0, uiClock=0;
let rain = [];
let ripples = [];
const N=15;
function makeUmbrella() {
return {
angle:0.06, omega:0, flipped:false, gone:false,
overload:0, slip:0, recover:0, force:0, snap:0,
x:0,y:0,vx:0,vy:0,
nodes:Array.from({length:N},(_,i)=>{
const u=(i-(N-1)/2)/((N-1)/2);
return {x:u*105,y:52*u*u,vx:0,vy:0};
})
};
}
function resize() {
const r=canvas.getBoundingClientRect(), dpr=Math.min(devicePixelRatio||1,2);
canvas.width=Math.round(r.width*dpr);
canvas.height=Math.round(r.height*dpr);
scale=Math.min(r.width/950,r.height/500);
width=r.width/scale; height=r.height/scale;
ground=height-56; personX=width*.38;
ctx.setTransform(dpr*scale,0,0,dpr*scale,0,0);
rain=Array.from({length:200},()=>({x:Math.random()*width,y:Math.random()*height,z:.4+Math.random()*.6}));
}
window.addEventListener("resize",resize);
function setAuto(value) {
rising=value;
autoBtn.setAttribute("aria-pressed",String(rising));
autoBtn.textContent="Rising wind: "+(rising?"on":"off");
}
function setWind(value) {
base=clamp(value,0,140); slider.value=base;
settingEl.textContent=Math.round(base)+" km/h";
}
slider.addEventListener("input",()=>{setWind(+slider.value);setAuto(false);});
autoBtn.addEventListener("click",()=>setAuto(!rising));
document.getElementById("new").addEventListener("click",()=>{umbrella=makeUmbrella();});
document.getElementById("reset").addEventListener("click",()=>{
setWind(18);setAuto(true);time=0;lean=0;effort=0;umbrella=makeUmbrella();
});
window.addEventListener("keydown",e=>{
if(e.target.tagName==="INPUT" || e.target.tagName==="BUTTON") return;
if(e.key==="ArrowLeft" || e.key==="ArrowRight") {
e.preventDefault();setAuto(false);setWind(base+(e.key==="ArrowRight"?3:-3));
}
if(e.code==="Space") {e.preventDefault();setAuto(!rising);}
});
function bodyPose() {
const hip={x:personX-lean*21,y:ground-78};
const shoulder={x:personX-lean*51,y:ground-143+lean*7};
const hand={x:shoulder.x+40+lean*13,y:shoulder.y+13+lean*5};
return {hip,shoulder,hand};
}
function update(dt) {
time+=dt;
if(rising) base=Math.min(140,base+0.9*dt);
// Coherent gusts rather than per-frame noise.
wind=clamp(base*(1+.065*Math.sin(time*1.71)+.035*Math.sin(time*4.13)),0,155);
const u=umbrella;
const v=wind/3.6;
const projection=.72+.28*Math.abs(Math.cos(u.angle));
const drag=u.flipped?.88:1.15;
const F=.5*1.225*.9*drag*v*v*projection;
u.force=F;
const heldForce=u.gone?0:F;
effort+=(clamp(heldForce/330,0,1)-effort)*Math.min(1,dt*4);
const leanTarget=u.gone?clamp(wind/200,0,.3):clamp(heldForce/310,0,1);
lean+=(leanTarget-lean)*Math.min(1,dt*(u.gone?2:4));
const pose=bodyPose();
if(!u.gone) {
u.x=pose.hand.x;u.y=pose.hand.y;
// Wind torque versus the wrist/arm's spring and damping.
const torque=F*.65*Math.cos(u.angle);
const elastic=185*(u.angle-.06);
const flutter=F*.025*Math.sin(time*19);
u.omega+=(torque-elastic-23*u.omega+flutter)/8*dt;
u.angle+=u.omega*dt;
if(u.angle>1.43) {u.angle=1.43;u.omega=Math.min(0,u.omega);}
if(u.angle<-.35) {u.angle=-.35;u.omega=Math.max(0,u.omega);}
// Damage has a little memory: a single tiny gust cannot flip it.
if(!u.flipped) {
u.overload=clamp(u.overload+(F>205?(F/205-1)*dt*3:-dt*.7),0,1);
if(u.overload>=1) {u.flipped=true;u.snap=1;u.recover=0;}
} else {
u.recover=wind<26?u.recover+dt:0;
if(u.recover>2.2) {u.flipped=false;u.overload=0;u.snap=1;u.recover=0;}
}
u.slip=clamp(u.slip+(F>330?(F/330-1)*dt*4:-dt*.8),0,1);
if(u.slip>=1) {
u.gone=true;
u.vx=90+v*3;
u.vy=-70;
u.omega+=1.5;
}
} else {
// The escaped umbrella is a light, tumbling object.
u.vx+=(v*19-u.vx)*dt*.8;
u.vy+=(52-u.vy*.8-F*.24)*dt;
u.x+=u.vx*dt;u.y+=u.vy*dt;
u.omega+=(Math.sin(u.angle+time)*F*.008-u.omega*.25)*dt;
u.angle+=u.omega*dt;
}
u.snap=Math.max(0,u.snap-dt*2.3);
// Flexible rib tips. Membrane coupling resists neighboring deviations.
const targets=u.nodes.map((n,i)=>{
const q=(i-(N-1)/2)/((N-1)/2), edge=Math.abs(q);
return {
x:105*q+F*.035*Math.cos(u.angle)*edge*edge,
y:(u.flipped?-49:52)*q*q-F*.018*Math.sin(u.angle)*edge,
q
};
});
const ax=[],ay=[];
for(let i=0;i<N;i++){
if(i===(N-1)/2) {ax[i]=ay[i]=0;continue;}
const n=u.nodes[i], t=targets[i];
let fx=135*(t.x-n.x)-15*n.vx;
let fy=135*(t.y-n.y)-15*n.vy;
for(const j of [i-1,i+1]) if(j>=0&&j<N) {
fx+=45*((u.nodes[j].x-targets[j].x)-(n.x-t.x));
fy+=45*((u.nodes[j].y-targets[j].y)-(n.y-t.y));
}
fy+=Math.sin(time*24+i*1.8)*Math.min(F*.2,55)*Math.abs(t.q);
ax[i]=fx;ay[i]=fy;
}
for(let i=0;i<N;i++) {
const n=u.nodes[i];
if(i===(N-1)/2) {n.x=n.y=n.vx=n.vy=0;continue;}
n.vx+=ax[i]*dt;n.vy+=ay[i]*dt;
n.x+=n.vx*dt;n.y+=n.vy*dt;
}
const rainVX=wind*4.9, rainVY=430+wind*1.1;
for(const r of rain){
r.x+=rainVX*r.z*dt;r.y+=rainVY*r.z*dt;
if(r.y>ground+15){
if(Math.random()<.035)ripples.push({x:r.x,y:ground+Math.random()*25,t:0});
r.y=-30-Math.random()*100;r.x=Math.random()*width-width*.15;
}
if(r.x>width+70){r.x=-70;r.y=Math.random()*ground;}
}
for(const r of ripples)r.t+=dt;
ripples=ripples.filter(r=>r.t<.65);
uiClock+=dt;
if(uiClock>.1){
uiClock=0;
speedEl.textContent=Math.round(wind);
slider.value=Math.round(base);settingEl.textContent=Math.round(base)+" km/h";
loadEl.style.width=(u.gone?0:clamp(F/330,0,1)*100)+"%";
loadEl.style.background=u.slip>.1?"#f08c71":"#ecc177";
forceEl.textContent=u.gone?"released":Math.round(F)+" N";
let state,detail;
if(u.gone){
state="Gone with the wind";
detail="The grip gave way. Lower the wind, then try a new umbrella.";
} else if(u.slip>.1){
state="Losing the grip";
detail="The shaft is being pulled out of both hands.";
} else if(u.flipped){
state="Inside out";
detail="The ribs have snapped through. Below 26 km/h, it can settle back.";
} else if(u.overload>.1){
state="Frame at its limit";
detail="The fabric is pulling the ribs past their stable shape.";
} else if(F>100){
state="Bracing hard";
detail="Feet planted. Both hands on the shaft. The gusts keep finding it.";
} else {
state="Holding steady";
detail=rising?"The wind is rising. Pull the slider back to give them a break.":"You control the wind. The gusts still have their own rhythm.";
}
if(stateEl.textContent!==state)stateEl.textContent=state;
detailEl.textContent=detail;
}
}
function line(points,color,w) {
ctx.beginPath();ctx.moveTo(points[0].x,points[0].y);
for(let i=1;i<points.length;i++)ctx.lineTo(points[i].x,points[i].y);
ctx.strokeStyle=color;ctx.lineWidth=w;ctx.lineCap="round";ctx.lineJoin="round";ctx.stroke();
}
function ellipse(x,y,rx,ry,color){
ctx.beginPath();ctx.ellipse(x,y,rx,ry,0,0,Math.PI*2);ctx.fillStyle=color;ctx.fill();
}
function elbow(a,b,L1,L2,bend) {
const dx=b.x-a.x,dy=b.y-a.y,d=Math.max(.001,Math.hypot(dx,dy));
const along=(L1*L1-L2*L2+d*d)/(2*d);
const cross=Math.sqrt(Math.max(0,L1*L1-along*along));
return {x:a.x+dx/d*along-dy/d*cross*bend,y:a.y+dy/d*along+dx/d*cross*bend};
}
function drawPerson() {
const p=bodyPose(), hip=p.hip, s=p.shoulder, h=p.hand;
const left={x:personX-34-effort*9,y:ground-5};
const right={x:personX+30+effort*12,y:ground-5};
ellipse(personX,ground+6,75,9,"#10232a88");
// Feet remain fixed to the ground; stance widens with effort.
const kneeL={x:hip.x-21-effort*8,y:ground-39};
const kneeR={x:hip.x+23+effort*9,y:ground-40};
line([hip,kneeL,left],"#213c47",17);
line([hip,kneeR,right],"#294653",18);
line([{x:left.x-10,y:ground-4},{x:left.x+8,y:ground-4}],"#0c2028",12);
line([{x:right.x-7,y:ground-4},{x:right.x+15,y:ground-4}],"#0c2028",12);
// Raincoat silhouette.
ctx.beginPath();
ctx.moveTo(s.x-15,s.y-3);ctx.quadraticCurveTo(s.x+10,s.y-11,s.x+17,s.y+8);
ctx.lineTo(hip.x+22,hip.y+9);ctx.lineTo(hip.x-24,hip.y+9);
ctx.quadraticCurveTo(hip.x-23,s.y+33,s.x-15,s.y-3);
ctx.fillStyle="#daa951";ctx.fill();
line([{x:s.x+1,y:s.y+16},{x:hip.x+3,y:hip.y+2}],"#b6843e",2);
line([{x:hip.x-23,y:hip.y+9},{x:hip.x+22,y:hip.y+9}],"#f2c36d",3);
const head={x:s.x-4-lean*3,y:s.y-22};
ellipse(head.x-3,head.y,19,23,"#e1b45d");
ellipse(head.x+6,head.y+2,11,15,"#deb9a0");
ctx.beginPath();ctx.moveTo(head.x+11,head.y-2);ctx.lineTo(head.x+19,head.y+3);ctx.lineTo(head.x+10,head.y+6);
ctx.fillStyle="#deb9a0";ctx.fill();
line([{x:head.x-16,y:head.y-10},{x:head.x+10,y:head.y-12}],"#f2c873",6);
ellipse(head.x+10,head.y-2,1.4,1.4,"#243a40");
const backShoulder={x:s.x-5,y:s.y+5};
const backHand=umbrella.gone?{x:s.x+44,y:s.y-8}:{x:h.x-2,y:h.y+16};
const e1=elbow(backShoulder,backHand,39,34,1);
line([backShoulder,e1,backHand],"#b8863f",13);
const frontShoulder={x:s.x+9,y:s.y+8};
const frontHand=umbrella.gone?{x:s.x+51,y:s.y+13}:h;
const e2=elbow(frontShoulder,frontHand,37,34,1);
line([frontShoulder,e2,frontHand],"#edbd67",14);
ellipse(backHand.x,backHand.y,6,7,"#d5ad93");
ellipse(frontHand.x,frontHand.y,7,6,"#efcbb0");
if(effort>.6&&!umbrella.gone){
line([{x:left.x-15,y:ground+3},{x:left.x-27,y:ground+4}],"#789492",1);
line([{x:right.x+14,y:ground+3},{x:right.x+27,y:ground+4}],"#789492",1);
}
}
function canopyPath(nodes) {
ctx.moveTo(nodes[0].x,nodes[0].y);
for(let i=1;i<nodes.length-1;i++){
const n=nodes[i], next=nodes[i+1];
ctx.quadraticCurveTo(n.x,n.y,(n.x+next.x)/2,(n.y+next.y)/2);
}
const n=nodes[nodes.length-1];
ctx.lineTo(n.x,n.y);
}
function drawUmbrella() {
const u=umbrella;
ctx.save();ctx.translate(u.x,u.y);ctx.rotate(u.angle);
// Rotating about the grip keeps the shaft attached even when sideways.
line([{x:0,y:18},{x:0,y:-110}],"#d0ded8",4);
ctx.beginPath();ctx.moveTo(0,16);ctx.quadraticCurveTo(0,30,-12,29);ctx.quadraticCurveTo(-22,28,-18,19);
ctx.strokeStyle="#e3c38c";ctx.lineWidth=5;ctx.stroke();
ctx.translate(0,-110);
const n=u.nodes;
// A narrow fabric band creates a readable cross-sectional canopy.
ctx.beginPath();canopyPath(n);
for(let i=n.length-1;i>=0;i--)ctx.lineTo(n[i].x,n[i].y+5+Math.abs((i-7)/7)*3);
ctx.closePath();ctx.fillStyle=u.flipped?"#ce725c":"#ed8d6c";ctx.fill();
// Rib spokes flex through a control point rather than acting as straight rods.
for(let i=0;i<N;i+=2){
const tip=n[i];
ctx.beginPath();ctx.moveTo(0,2);
ctx.quadraticCurveTo(tip.x*.52,tip.y*.2+(u.flipped?-8:8),tip.x,tip.y+3);
ctx.strokeStyle="#354b50";ctx.lineWidth=1.6;ctx.stroke();
ellipse(tip.x,tip.y+3,2,2,"#d7ddd2");
}
ctx.beginPath();canopyPath(n);ctx.strokeStyle="#ffc5a0";ctx.lineWidth=2.3;ctx.stroke();
line([{x:0,y:5},{x:0,y:-8}],"#dce5dd",3);
if(u.snap>0){
ctx.strokeStyle="#f1d3a2";ctx.lineWidth=1;ctx.globalAlpha=u.snap;
for(const side of [-1,1]){
line([{x:side*119,y:-15},{x:side*130,y:-24}],"#f1d3a2",1);
line([{x:side*124,y:0},{x:side*139,y:-2}],"#f1d3a2",1);
}
}
ctx.restore();
}
function draw() {
ctx.clearRect(0,0,width,height);
const sky=ctx.createLinearGradient(0,0,0,ground);
sky.addColorStop(0,"#142c37");sky.addColorStop(1,"#4b666b");
ctx.fillStyle=sky;ctx.fillRect(0,0,width,height);
// Distant contours and desaturated buildings.
ctx.fillStyle="#304c56";
ctx.beginPath();ctx.moveTo(0,ground-65);
for(let x=0;x<=width+50;x+=50)ctx.lineTo(x,ground-65-18*Math.sin(x*.009)-10*Math.sin(x*.023));
ctx.lineTo(width,ground);ctx.lineTo(0,ground);ctx.fill();
ctx.fillStyle="#29434d";
for(let i=0;i<8;i++){
const x=width*.61+i*45;
ctx.fillRect(x,ground-60-(i%3)*14,29,80);
}
ctx.fillStyle="#203b44";ctx.fillRect(0,ground,width,height-ground);
line([{x:0,y:ground},{x:width,y:ground}],"#6e8987",1);
for(let i=0;i<13;i++){
const x=(i*173+39)%width;
ellipse(x,ground+12+(i%3)*12,35+i%4*9,1.7,"#6a858044");
}
// Sparse horizontal eddies make the gale visible even without rain.
ctx.strokeStyle="#b6d1c0";ctx.lineWidth=1;
ctx.globalAlpha=clamp(wind/600,0,.18);
for(let i=0;i<9;i++){
const x=((time*(70+wind*3)+i*191)%(width+240))-120;
const y=ground-40-(i*47)%(ground-30);
ctx.beginPath();ctx.moveTo(x,y);ctx.quadraticCurveTo(x+50,y-6,x+110,y-2);ctx.stroke();
}
ctx.globalAlpha=1;
drawPerson();drawUmbrella();
// Rain stretches with its velocity: tilt is not an independent animation.
for(const r of rain){
const vx=wind*4.9,vy=430+wind*1.1;
const exposure=.025*r.z;
ctx.strokeStyle=`rgba(190,218,219,${.13+r.z*.25})`;
ctx.lineWidth=r.z*.9;
ctx.beginPath();ctx.moveTo(r.x,r.y);
ctx.lineTo(r.x-vx*exposure,r.y-vy*exposure);ctx.stroke();
}
for(const r of ripples){
ctx.beginPath();ctx.ellipse(r.x,r.y,3+r.t*21,1+r.t*2,0,0,Math.PI*2);
ctx.strokeStyle=`rgba(181,210,203,${(1-r.t/.65)*.25})`;ctx.lineWidth=.8;ctx.stroke();
}
if(umbrella.gone && (umbrella.x>width+140||umbrella.y<-180)){
ctx.fillStyle="#c2d7cd";ctx.font="12px system-ui";ctx.textAlign="right";
ctx.fillText("umbrella, somewhere downwind →",width-24,Math.max(45,height*.3));
ctx.textAlign="left";
}
}
function frame(now){
const elapsed=Math.min((now-last)/1000,.05);last=now;
accumulator+=elapsed;
const step=1/120;
while(accumulator>=step){update(step);accumulator-=step;}
draw();requestAnimationFrame(frame);
}
umbrella=makeUmbrella();resize();
requestAnimationFrame(frame);
})();
</script>
</body>
</html>