Deck.transition('flaps',{dur:1.05,frag:`void main(){ float row=floor(vUv.y*9.), f=fract(vUv.y*9.); float t=clamp(p*1.45-row*.052,0.,1.), h=cos(t*3.14159265); vec4 c=texture(tB,vUv); if(abs(f-.5)<.5*abs(h)){ vec2 uv=vec2(vUv.x,(row+.5+(f-.5)/max(abs(h),.001))/9.); c=(h>0.?texture(tA,uv):texture(tB,uv))*(.42+.58*abs(h)); } o=p<=0.?texture(tA,vUv):p>=1.?texture(tB,vUv):c; }`}); Deck.scene({ id:'calendar',title:'2027',enterWith:'flaps',post:{tone:'none'}, beats:[{dur:1.8,hold:4},{dur:4.8,hold:5},{dur:3.6,hold:6},{dur:4.5,hold:5}], notes:[ "This is 2027 on the wall. Three hundred and sixty five days, and the printer gave every one of them the same size.", "Now size each day by how much AI progress happens in it, next to a day in 2025. In this run it is about 1.7 on the first of January, 6 by the middle of February, 40 on 12 April, a thousand by 1 July. January to March turn into lint. June does not fit. This is one modelled run, not a measurement.", "In the example run from the AI Futures Project, November 2026 update, 12 April is the day AI beats the best human researchers, and 1 July is superintelligence. It is one published run, and the authors' own medians are later: May to August 2027 for the superhuman researcher. If someone asks how 200-hour tasks and superintelligence can land in the same month: the tower was the old trend continued, this is a model where AI speeds up its own progress.", "And it keeps going. At a thousand times the pace, one July day holds more than a year of 2025. Let that day open." ], setup(d){ const days=[],months=['January','February','March','April','May','June','July','August','September','October','November','December']; const lens=(week,row,close)=>{ const t=week-26, a=-.09+.115*Math.min(0,t),R=(close?815:880)*Math.exp(Math.min(4,t*(close?.99:.325))); const cx=308+R*Math.cos(a),cy=799+R*Math.sin(a)*.44; const v=(row-3.5)*R*(close?.23:.135); return [cx-v*Math.sin(a+.18),cy+(v<0?v/(1+Math.abs(v)/455):v)*Math.cos(a+.18)]; }; let j=0; for(let m=0;m<12;m++){ let n=[31,28,31,30,31,30,31,31,30,31,30,31][m],start=(j+4)%7; for(let i=0;i=2; corners.push({x:x+(right?23:-23),y:y+(down?10:-10),b:lens(w+Number(right),wd+Number(down),true),c:lens(w+Number(right),wd+Number(down),false)}); } days.push({m,num:String(i+1),wd,w,corners}); } } return {days,months,bg:d.pass(`uniform float uM;void main(){ vec2 q=design(vUv), a=q-vec2(960.,540.); float ed=sdBox(a,vec2(833.,474.)); vec3 col=vec3(.59,.136,.107)*(.86+.15*vUv.x); col*=.68+.32*smoothstep(-4.,29.,sdBox(a-vec2(10.,17.),vec2(833.,474.))); col=mix(col,vec3(.958,.936,.868),1.-smoothstep(-.7,.7,ed)); float v=q.x*.85+q.y*.45+9.*sin(uTime*.17)+uM*4.; col*=1.-.095*(1.-smoothstep(55.,112.,abs(mod(v,880.)-440.)))-.052*(1.-smoothstep(20.,62.,abs(q.y-.2*q.x-440.))); o=vec4(col+(hash12(floor(q))-.5)*.024,1.); }`,'planner stock and window light')}; }, draw(s,d,r){ const c=d.ctx2d,K=s.k(1,0,4.8),A=s.k(2,0,2.45),Z=s.k(3,0,4.5),ink='#24231f',red='#b53829',iv='#f4efdf',lin=d.E.lin; const text=(str,x,y,size,opts={})=>d.text(str,{x,y,size,font:'arial',color:ink,...opts}); r.bg.draw({uM:s.mouse.x}); const old=1-Z; for(let i=0;i<4;i++){let x=i%2?1759:161,y=i<2?100:981; d.rect(x-10,y,21,1,ink);d.rect(x,y-10,1,21,ink);} let lab=1-K; if(lab>.001)for(let m=0;m<12;m++){ let x=194+(m%4)*373,y=286+Math.floor(m/4)*226; text(r.months[m],x,y,23,{font:'arialBold',alpha:lab}); for(let n=0;n<7;n++)text(['M','T','W','T','F','S','S'][n],x,y+28+n*22,15,{font:'mono',color:n===6?red:ink,alpha:lab}); d.rect(x,y+188,345,1,ink,lab*.45); } const jul=r.days[181],J=jul.corners; const jx=(J[0].c[0]+J[1].c[0]+J[2].c[0]+J[3].c[0])/4,jy=(J[0].c[1]+J[1].c[1]+J[2].c[1]+J[3].c[1])/4; const jw=J[1].c[0]-J[0].c[0],jh=((J[2].c[1]-J[1].c[1])+(J[3].c[1]-J[0].c[1]))*.5; const zx=Math.pow(1640/jw,Z),zy=Math.pow(904/jh,Z); c.save();c.beginPath();c.rect(127-127*Z,66-66*Z,1666+254*Z,948+132*Z);c.clip(); c.translate(jx+(960-jx)*Z,jy+(540-jy)*Z);c.scale(zx,zy);c.translate(-jx,-jy); for(const v of r.days){ if(K>.997&&v.w>31)continue; const pts=v.corners, X=k=>pts[k].x+K*(pts[k].b[0]+A*(pts[k].c[0]-pts[k].b[0])-pts[k].x), Y=k=>pts[k].y+K*(pts[k].b[1]+A*(pts[k].c[1]-pts[k].b[1])-pts[k].y); const x=(X(0)+X(1)+X(2)+X(3))/4,y=(Y(0)+Y(1)+Y(2)+Y(3))/4, w=(X(1)-X(0)+X(2)-X(3))*.5,h=(Y(3)-Y(0)+Y(2)-Y(1))*.5; if(x-w>1850||x+w<0||y-h>1090||h<.04)continue; const chosen=v===jul; c.save(); if(K>.001){ c.beginPath();c.moveTo(X(0),Y(0));for(let k=1;k<4;k++)c.lineTo(X(k),Y(k));c.closePath(); c.globalAlpha=K;c.fillStyle=chosen?'#f5e6c5':v.m%2?'#e6dcc6':'#f2eada';c.fill(); c.strokeStyle=chosen&&A>.3?red:'#aaa18d';c.lineWidth=chosen?1.1+5*A:Math.min(1.8,h*.055);c.stroke(); } c.translate(x,y);c.rotate(Math.atan2(Y(1)-Y(0),X(1)-X(0))); c.globalAlpha=chosen?1-Z:1;c.fillStyle=v.wd===6?red:ink;c.font='600 '+Math.max(.25,Math.min(h*.79,w*.78,420))+'px Arial'; c.textAlign='center';c.textBaseline='middle';c.fillText(v.num,0,1); c.restore(); } // The nested print is already inside the selected cell. Both it and // the surrounding cells share the lens transform throughout the zoom. if(Z>.001){ c.save();c.translate(jx,jy);c.scale(jw/1640,jh/904); c.fillStyle=iv;c.globalAlpha=Z;c.fillRect(-774,-375,1548,750); c.strokeStyle=red;c.lineWidth=3;c.strokeRect(-774,-375,1548,750); const top=-352; text('01',-746,top,75,{font:'arialBold',color:red,alpha:Z}); text('JULY / 2027',-629,top+24,31,{font:'mono',alpha:Z}); text('365 DAYS',742,top+24,29,{align:'right',font:'mono',alpha:Z}); for(let i=0;i<12;i++){ let x=-741+(i%6)*250,y=i<6?-235:167; text(r.months[i],x,y-26,20,{font:'arialBold',alpha:Z}); const n=[31,28,31,30,31,30,31,31,30,31,30,31][i]; for(let j=0;j0){ d.rect(1250,888,495,64,ink,counter); text(Math.round(Math.pow(10,9.58*s.k(1,0,4.8))).toLocaleString('en-US')+' ×',1723,898,39,{font:'mono',align:'right',color:iv,alpha:counter}); } const strip=(str,x,y,w,t,size)=>{ if(t<=0)return;c.save();c.translate(x+28*(1-t),y);c.rotate(-.016); d.rect(4,5,w,65,ink,t*.17);d.rect(0,0,w,65,'#fff8df',t);d.rect(0,0,7,65,red,t); text(str,21,13,size,{alpha:t});c.restore(); }; strip('12 April: AI that beats the best human researchers',681,105,821,s.k(2,.65,1.65)*old,33); strip('1 July: superintelligence',964,187,414,s.k(2,1.55,2.6)*old,33); strip("One example run, AI Futures Project, November 2026. Its authors' own medians are later.",175,937,1420,s.k(2,2.65,3.6)*old,32); } });