Deck.transition('flaps',{ dur:1.15, frag:`void main(){ if(p<=0.){ o=texture(tA,vUv); return; } if(p>=1.){ o=texture(tB,vUv); return; } float row=floor(vUv.y*8.); float q=sat(p*1.32-.29*(7.-row)/7.); q=q*q*(3.-2.*q); float y=fract(vUv.y*8.), edge=1.-q; vec3 b=texture(tB,vUv).rgb; vec2 uv=vec2(vUv.x,(row+y/max(edge,.025))/8.); vec3 a=texture(tA,uv).rgb*(.72+.28*edge); float lip=exp(-abs(y-edge)*85.)*sin(q*3.14159); o=vec4(mix(a,b,smoothstep(edge-.014,edge+.014,y))+vec3(.34,.233,.144)*lip,1.); }` }); Deck.scene({ id:'calendar', title:'2027', enterWith:'flaps', post:{tone:'none',bloom:0,vignette:0,grain:0}, beats:[{dur:1.8,hold:4},{dur:5.8,hold:4},{dur:3.8,hold:6},{dur:4.8,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 months=['JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC']; const lengths=[31,28,31,30,31,30,31,31,30,31,30,31]; const weekdays=['M','T','W','T','F','S','S']; const shades=['#e7d6b6','#edddbf','#f2e4c9','#f5e8cd','#efdfc1','#e9d8b8']; const days=[], grid=new Path2D(), fine=new Path2D(), marks=new Path2D(); const insets=new Path2D(), minors=new Path2D(), sundays=new Path2D(); let count=0, offset=4; for(let m=0;m<12;m++){ const x=266+m*116; const pageX=137+(m%6)*276, pageY=m<6?169:663; grid.rect(x,448,108,476); for(let j=1;j<7;j++){ grid.moveTo(x,448+68*j); grid.lineTo(x+108,448+68*j); } for(let j=1;j<6;j++){ fine.moveTo(x+18*j,448); fine.lineTo(x+18*j,924); } for(let n=1;n<=lengths[m];n++,count++){ const slot=offset+n-1, row=slot%7, col=Math.floor(slot/7); const fx=x+9+18*col, fy=482+68*row; const mx=pageX+16+row*33, my=pageY+59+col*34; insets.rect(mx,my,m===6&&n===1?27:25,26); const xx=mx+3, yy=my+11; minors.rect(xx,yy,19,12); for(let j=1;j<7;j++){ minors.moveTo(xx+j*19/7,yy); minors.lineTo(xx+j*19/7,yy+12); } for(let j=1;j<5;j++){ minors.moveTo(xx,yy+j*2.4); minors.lineTo(xx+19,yy+j*2.4); } sundays.rect(xx+16.3,yy,2.7,12); let tx,ty,angle; const i=count; if(i<90){ const radius=3+.0102*i*i, a=(i-89)*.151-.26; tx=424+radius*Math.cos(a); ty=790+radius*.72*Math.sin(a); angle=a+1.57; }else if(i<134){ const t=(i-89)/45, a=1-t; tx=a*a*a*505+3*a*a*t*720+3*a*t*t*565+t*t*t*958; ty=a*a*a*775+3*a*a*t*705+3*a*t*t*468+t*t*t*440; angle=-.36-.57*Math.sin(t*Math.PI); }else if(i<181){ const t=(i-134)/47; tx=958+2240*Math.pow(t,1.44); ty=440-950*t+125*Math.sin(t*Math.PI); angle=-.27+.19*t; }else{ const t=(i-181)/184; tx=1545+6400*t; ty=655+1900*t; angle=-.105+.23*t; } const w=Math.min(3900,2.4*Math.exp(i*.0382)); days.push({label:String(n),m,row,fx,fy,mx,my,tx,ty,angle,w,h:w*.93, shade:shades[(i*7+Math.floor(i/11))%shades.length]}); } offset=(offset+lengths[m])%7; } for(let j=0;j<4;j++){ const x=j%2?1680:240, y=j>1?967:112; marks.moveTo(x-11,y); marks.lineTo(x+11,y); marks.moveTo(x,y-11); marks.lineTo(x,y+11); marks.moveTo(x+6,y); marks.arc(x,y,6,0,Math.PI*2); } // A projective camera for the July leaf. Its outline, folds and editor // handles all use the same projection, including the depth at each corner. const cam={x:0,y:0,sx:1,sy:1,ca:1,sa:0,kx:0,ky:0}; const project=(x,y,q)=>{ const z=1+cam.kx*x+cam.ky*y; const px=cam.sx*(x+.067*y)/z, py=cam.sy*y/z; q[0]=cam.x+cam.ca*px-cam.sa*py; q[1]=cam.y+cam.sa*px+cam.ca*py; }; const point=[0,0]; const vertex=(c,x,y,start)=>{ project(x,y,point); if(start) c.moveTo(point[0],point[1]); else c.lineTo(point[0],point[1]); }; const quad=(c,x0,y0,x1,y1)=>{ c.beginPath(); vertex(c,x0,y0,true); vertex(c,x1,y0,false); vertex(c,x1,y1,false); vertex(c,x0,y1,false); c.closePath(); }; const handles=[-424,-418,0,-418,424,-418,424,0,424,418,0,418,-424,418,-424,0,0,-469]; return { months,weekdays,days,grid,fine,marks,insets,minors,sundays, cam,project,quad,vertex,point,handles,U:{uWarp:0,uDeep:0,uPointer:[0,0]}, bg:d.pass(`uniform float uWarp,uDeep; uniform vec2 uPointer; float cover(float x,float feather){ return 1.-smoothstep(-feather,feather,x); } void main(){ vec2 q=design(vUv), l=q+uPointer*vec2(16.,9.); vec2 r=(l-vec2(1370.,295.))/vec2(1200.,750.); float win=exp(-dot(r,r)); float diag=l.x+.77*l.y; float sash=.56+.44*smoothstep(35.,111.,abs(diag-1460.)); sash*=.76+.24*smoothstep(25.,103.,abs(diag-2040.)); float light=win*sash*(.78+.22*smoothstep(28.,102.,abs(l.y-.21*l.x-285.))); float grit=(hash12(floor(q*1.4))-.5)*.033+(vnoise(q*.075)-.5)*.018; vec3 c=mix(vec3(.245,.045,.047),vec3(.67,.207,.17),light); c*=1.-.25*uWarp; float a=1.-smoothstep(.05,.79,uWarp); vec2 cp=mix(vec2(960.,538.),vec2(463.,766.),uWarp*uWarp*.83); vec2 sz=mix(vec2(750.,460.),vec2(90.,48.),uWarp); vec2 p=q-cp; p.y+=1.6*sin(p.x*.009); float dist=sdBox(p,sz); float shadow=exp(-max(sdBox(p-vec2(9.,22.),sz),0.)/19.); c*=1.-.48*a*shadow; vec3 paper=vec3(.955,.897,.777)*(.84+.16*light+.044*exp(-abs(p.x+600.)*.008)); paper-=vec3(.055,.064,.065)*exp(-abs(p.y-sz.y)*.15); c=mix(c,paper,a*cover(dist,1.)); float pin=length(q-vec2(960.,106.)); float pinSh=length((q-vec2(963.,113.))*vec2(1.,.82)); c*=1.-a*.34*exp(-pinSh*.096); c=mix(c,mix(vec3(.22,.15,.115),vec3(.75,.58,.38),sat((110.-q.y)*.13)),a*cover(pin-7.,.8)); c+=vec3(.20,.15,.10)*a*cover(length(q-vec2(958.,103.))-2.,.7); c=mix(c,vec3(.16,.049,.046)+vec3(.13,.053,.039)*light,uDeep); o=vec4(c+grit,1.); }`,'red wall and window light') }; }, draw(s,d,r){ const c=d.ctx2d,L=d.E.lin; const ink='#29221e',red='#9c2b28',cream='#fff0d8'; const warp=s.k(1,.18,5.35), settle=s.k(2,0,2.35); const reveal=1-s.k(1,.18,2.35), fadeWarp=1-s.k(3,1.04,2.95); const push=s.k(3,0,3.62), deep=s.k(3,1.02,3.45), dayShow=s.k(1,0,3.85); r.U.uWarp=warp; r.U.uDeep=deep; r.U.uPointer[0]=s.mouse.x+.11*Math.sin(s.t*.28); r.U.uPointer[1]=s.mouse.y; r.bg.draw(r.U); if(reveal>.001){ c.save(); c.globalAlpha=reveal; c.strokeStyle='#65574b'; c.lineWidth=1; c.stroke(r.marks); c.strokeStyle='#736355'; c.lineWidth=1.1; c.stroke(r.grid); c.strokeStyle='#857360'; c.lineWidth=.55; c.stroke(r.fine); c.fillStyle=ink; c.fillRect(265,370,1385,2); c.textBaseline='middle'; c.textAlign='center'; c.font='bold 21px Arial, sans-serif'; for(let m=0;m<12;m++) c.fillText(r.months[m],320+m*116,414); c.font='bold 15px Arial, sans-serif'; for(let i=0;i<7;i++){ c.fillStyle=i===6?red:ink; c.fillText(r.weekdays[i],247,482+i*68); } c.restore(); d.text('2027',{x:261,y:123,size:225,font:'arialBold',color:ink,alpha:reveal}); d.text('Every day the same size.',{x:815,y:226,size:66,font:'display',color:ink, show:s.k(0,.25,1.8,L),alpha:reveal}); } if(fadeWarp>.002){ c.save(); c.textAlign='center'; c.textBaseline='middle'; for(let j=r.days.length-1;j>=0;j--){ if(j===181 && warp>.015) continue; const k=r.days[j]; const lag=.13*(.5+.5*Math.sin(j*1.72)); const t=Math.min(1,Math.max(0,warp*(1+lag)-lag)); const x=k.fx+(k.tx-k.fx)*t, y=k.fy+(k.ty-k.fy)*t; const w=18*Math.pow(k.w/18,t), h=68*Math.pow(k.h/68,t); const b=Math.max(w,h)*.77+10; if(x+bd.view.x1 || y+b<0 || y-b>1080) continue; c.save(); c.translate(x,y); c.rotate(k.angle*t+.012*s.mouse.x*t); if(t>.007){ c.globalAlpha=Math.min(1,t*3)*fadeWarp; c.fillStyle='#291613'; if(w>9) c.fillRect(-w/2+2,-h/2+4,w,h); c.fillStyle=k.shade; c.fillRect(-w/2,-h/2,w,h); if(w>7){ c.strokeStyle='#927b65'; c.lineWidth=w>70?1.9:.8; c.strokeRect(-w/2,-h/2,w,h); } } const size=Math.min(w*.50,h*.62,800); if(w>9 && size>6){ c.globalAlpha=fadeWarp; c.fillStyle=k.row===6?red:ink; c.font='bold '+size+'px Arial, sans-serif'; c.fillText(k.label,0,0); if(w>90 && t>.45){ c.font='bold '+Math.min(w*.135,110)+'px Arial, sans-serif'; c.fillText(r.months[k.m],0,-h*.34); } } c.restore(); } c.restore(); } if(dayShow>.001){ const cam=r.cam, q=r.point; const magnify=Math.pow(3.85,push); cam.x=(1550-152*settle)*(1-push)+1020*push; cam.y=(634-37*settle)*(1-push)+558*push; cam.sx=(1.235-.378*settle)*magnify; cam.sy=(1.01-.225*settle)*magnify; cam.kx=(-.00007-.000055*settle)*(1-.8*push); cam.ky=(-.00008-.000023*settle)*(1-.8*push); const a=(-.111+.014*s.mouse.x)*(1-.86*push); cam.ca=Math.cos(a); cam.sa=Math.sin(a); c.save(); c.globalAlpha=dayShow; c.save(); c.translate(10,18); r.quad(c,-450,-450,450,450); c.fillStyle='rgba(48,24,19,.31)'; c.fill(); c.restore(); r.quad(c,-450,-450,450,450); const tone=c.createLinearGradient(cam.x-430*cam.sx,cam.y-330*cam.sy,cam.x+280*cam.sx,cam.y+440*cam.sy); tone.addColorStop(0,'#f9efd8'); tone.addColorStop(.52,'#eee0c1'); tone.addColorStop(.77,'#dec9a3'); tone.addColorStop(1,'#f3e5c9'); c.fillStyle=tone; c.fill(); c.clip(); c.globalAlpha=dayShow*(1-deep); r.quad(c,-424,-418,424,418); c.strokeStyle='#9d8267'; c.lineWidth=1.7*magnify; c.stroke(); c.beginPath(); r.vertex(c,-372,-232,true); r.vertex(c,372,-232,false); r.vertex(c,-372,286,true); r.vertex(c,372,286,false); c.strokeStyle=ink; c.lineWidth=2.4*magnify; c.stroke(); c.save(); c.translate(cam.x,cam.y); c.rotate(a); c.transform(cam.sx,0,.067*cam.sx,cam.sy,0,0); c.fillStyle=ink; c.textAlign='left'; c.textBaseline='alphabetic'; c.font='bold 54px Arial, sans-serif'; c.fillText('JUL',-351,-273); c.font='bold 432px Arial, sans-serif'; c.fillText('01',-363,181); c.font='bold 33px Arial, sans-serif'; c.fillText('THU',-347,354); c.restore(); if(deep>.001){ // The new planner rises from the middle of the leaf while the old // date and rules travel out past the camera's clipped paper edges. c.globalAlpha=deep; const inner=c.createLinearGradient(120,0,1720,1080); inner.addColorStop(0,'#603125'); inner.addColorStop(.49,'#3e211b'); inner.addColorStop(1,'#251716'); c.fillStyle=inner; const reach=190+262*s.k(3,1.02,3.33); r.quad(c,-reach,-reach,reach,reach); c.fill(); c.save(); r.quad(c,-reach,-reach,reach,reach); c.clip(); const k=.62+.38*deep; c.translate(960+(1-deep)*(cam.x-960)*.65,540+(1-deep)*88); c.rotate(-.032*(1-deep)); c.scale(k,k); c.translate(-960,-540); c.textAlign='left'; c.textBaseline='alphabetic'; c.fillStyle='#f2dfba'; c.font='bold 91px Arial, sans-serif'; c.fillText('2027',137,135); c.fillStyle='#b68965'; c.fillRect(422,126,1353,1.4); for(let m=0;m<12;m++){ const x=137+(m%6)*276, y=m<6?169:663; c.fillStyle='#231412'; c.fillRect(x+7,y+10,255,264); c.fillStyle='#ba9a72'; c.fillRect(x+3,y+5,255,264); c.fillStyle=m===6?'#fbe9c4':m%2?'#eddbba':'#f5e4c6'; c.fillRect(x,y,255,264); c.fillStyle=m===6?red:ink; c.font='bold 25px Arial, sans-serif'; c.fillText(r.months[m],x+15,y+32); c.fillRect(x+15,y+41,225,1.5); c.font='bold 9px Arial, sans-serif'; for(let j=0;j<7;j++){ c.fillStyle=j===6?red:'#665044'; c.fillText(r.weekdays[j],x+25+j*33,y+54); } } c.fillStyle='#fff0d2'; c.fill(r.insets); c.strokeStyle='#b39775'; c.lineWidth=.7; c.stroke(r.insets); c.fillStyle='#cf7969'; c.fill(r.sundays); c.strokeStyle='#826751'; c.lineWidth=.49; c.stroke(r.minors); c.font='bold 9px Arial, sans-serif'; for(let i=0;i.001){ c.save(); c.globalAlpha=pick; c.strokeStyle='#3068ee'; c.fillStyle='#f8fbff'; c.lineWidth=1.85; r.quad(c,-424,-418,424,418); c.stroke(); c.beginPath(); r.vertex(c,0,-418,true); r.vertex(c,0,-469,false); c.stroke(); for(let i=0;i.001){ const y=104+16*(1-headline); d.rect(146,y+7,788,218,'#331d18',.35*headline); d.rect(138,y,788,218,'#fbefd5',headline); d.rect(138,y,7,218,red,headline); d.text('Now size each day\nby how much happens in it.',{ x:167,y:y+31,size:58,font:'display',color:ink,alpha:headline,style:'fade' }); } const read=s.k(1,1.06,2.12,L)*(1-s.k(2,0,.62,L)); if(read>.001){ const progress=s.k(1,.92,5.8,L); const pace=Math.round(1.7*Math.pow(4842167321/1.7,progress)); d.rect(1258,885,555,143,'#3b211b',.32*read); d.rect(1251,878,555,143,'#341c18',read); d.rect(1251,878,555,3,'#b67e61',read); d.text(pace.toLocaleString('en-US'),{x:1778,y:892,size:62,font:'mono', color:cream,align:'right',alpha:read}); d.text('one modelled run',{x:1778,y:974,size:25,font:'mono', color:'#f4d9b6',align:'right',alpha:read}); } const clear=1-s.k(3,0,.78,L); const april=s.k(2,.72,1.45)*clear, july=s.k(2,1.65,2.48)*clear; if(april>.001){ const y=190+22*(1-april); d.rect(147,y+7,815,70,'#290e0e',.4*april); d.rect(139,y,815,70,'#f7ead1',april); d.rect(139,y,6,70,red,april); d.text('12 April: AI that beats the best human researchers',{ x:163,y:y+16,size:30,font:'arialBold',color:ink,alpha:april}); } if(july>.001){ const y=278+22*(1-july); d.rect(147,y+7,540,70,'#290e0e',.4*july); d.rect(139,y,540,70,'#f7ead1',july); d.rect(139,y,6,70,red,july); d.text('1 July: superintelligence',{x:163,y:y+13,size:38, font:'arialBold',color:ink,alpha:july}); } const citation=s.k(2,2.45,3.55,L)*clear; if(citation>.001){ d.rect(147,937,823,101,'#39211c',.4*citation); d.rect(139,930,823,101,'#f7ead1',citation); d.rect(139,930,6,101,red,citation); d.text("One example run, AI Futures Project, November 2026.\nIts authors' own medians are later.",{ x:163,y:944,size:27,font:'text',color:ink,alpha:citation,style:'fade' }); } const strip=s.k(3,2.88,3.71); if(strip>.001){ const y=469+22*(1-strip); d.rect(309,y+11,1318,165,'#1e1210',.58*strip); d.rect(301,y,1318,165,'#faecd1',strip); d.rect(301,y,1318,2,'#b59470',strip); d.text('Then a year fits in a day.',{ x:960,y:y+11,size:89,font:'display',color:ink,align:'center', show:s.k(3,3.02,4.18,L),style:'fade' }); d.text('illustration',{ x:960,y:y+118,size:29,font:'mono',color:ink,align:'center', show:s.k(3,3.68,4.8,L),style:'fade' }); } } });