Deck.transition('daybreak',{dur:1.4,frag:`void main(){ vec2 q=(vUv-.5)*vec2(uRes.x/uRes.y,1.); float r=length(q-vec2(0.,-2.2)), e=mix(1.6,3.6,p); // a curved terminator rising from below the frame float m=smoothstep(e,e-.06,r); // 0 everywhere at p=0, 1 everywhere at p=1 vec3 c=mix(texture(tA,vUv).rgb,texture(tB,vUv).rgb,m); c+=(vec3(1.,.62,.3)*exp(-abs(r-e)*16.)+vec3(.3,.5,1.)*.5*exp(-abs(r-e)*5.))*p*(1.-p)*4.; // thin dawn line, gone at both ends o=vec4(c,1.); }`}); Deck.scene({ id:'selectall', title:'Select all', enterWith:'daybreak', post:{bloom:1.1,threshold:.9,vignette:.3,grain:.035}, beats:[{dur:4,hold:5},{dur:4,hold:5},{dur:6,hold:5}], notes:[ 'Up to now it has only been editing screens. Then it gets hands: robots, factories, factories that build factories. Farming economies doubled about every thousand years. Ours doubles about every twenty.', 'Once machines build the machines, the doubling time falls to a year, then to a month. That is not a new law of physics. It is what any copying process does when nothing holds it back. This part is my speculation, not a published forecast.', 'And there is a great deal of room. Everything our civilisation uses is about one part in twenty trillion of what the Sun puts out. So: select all.'], setup(d){ return { U:{uE:[0,0,1],uS:[0,0,.2],uTile:0,uShell:0,uSun:0,uTilt:1,uM:[0,0]}, space:d.pass(`uniform vec3 uE,uS; uniform float uTile,uShell,uSun,uTilt; uniform vec2 uM; void main(){ vec2 q=design(vUv); vec2 p=(q-vec2(960.,540.))*vec2(1.,-1.)/1080.; p+=uM*.01; vec3 c=vec3(.004,.006,.012); vec2 sg=p*90.; float st=hash12(floor(sg)); // stars c+=vec3(.6,.7,1.)*step(.985,st)*smoothstep(.3,0.,length(fract(sg)-.5))*(.5+.5*sin(uTime*.8+st*80.))*.8; // the Sun: corona, long rays through the gaps, then the tiled shell vec2 sp=p-uS.xy; float sd=length(sp), dd=max(sd-uS.z,0.), ang=atan(sp.y,sp.x); float ray=pow(.5+.5*sin(ang*17.+2.*sin(ang*5.)),6.)+.6*pow(.5+.5*sin(ang*29.+1.+uTime*.1),10.); c+=uSun*vec3(1.,.55,.2)*(.07/(dd*5.+.05)*(1.-.75*uShell)+ray*uShell*1.3*exp(-dd*2.4)+.25*exp(-dd*14.)); if(sda+(b-a)*t; const ex=mix(mix(.5,.36,k1),-.6,k2), ey=mix(mix(-1.0,-.02,k1),-.3,k2)-.15*(1-E.io3(s.enter)), eR=mix(mix(1.15,.3,k1),.012,k2); const sx=2.4-2.08*ks, sy=0, sR=.2; U.uE[0]=ex; U.uE[1]=ey; U.uE[2]=eR; U.uS[0]=sx; U.uS[1]=sy; U.uS[2]=sR; U.uTile=.2*s.k(0,.5,4)+.68*s.k(1,.3,4); U.uShell=s.k(2,1.5,6); U.uSun=s.k(2,0,1); U.uTilt=1.0-.65*k1; U.uM[0]=s.mouse.x; U.uM[1]=s.mouse.y; r.space.draw(U); const mx=s.mouse.x*.01, my=s.mouse.y*.01; // selection box around the whole planet const eh=eR*1080+40, ecx=960+(ex-mx)*1080, ecy=540-(ey-my)*1080; d.select(ecx-eh,ecy-eh,eh*2,eh*2,{a:s.k(1,2.8,3.6,L)*(1-s.k(2,0,.5,L)),rot:-.1}); // faint selection box around the whole star const sh=sR*1080+60, scx=960+(sx-mx)*1080, scy=540-(sy-my)*1080, c=d.ctx2d; c.save(); c.globalAlpha=.6; d.select(scx-sh,scy-sh,sh*2,sh*2,{a:s.k(2,4.6,5.4,L)}); c.restore(); const col='#f4efe6'; d.text('Farming economies doubled every thousand years.\nOurs, every twenty.',{x:150,y:110,size:64,color:col,show:s.k(0,.4,1.8,L),hide:s.k(1,0,.6,L)}); const h=d.text('Then every year.\nThen every month.',{x:150,y:130,size:88,color:col,show:s.k(1,.9,2.2,L),hide:s.k(2,0,.6,L)}); d.text('illustration',{x:150,y:h.y+h.h+30,size:32,font:'mono',color:'#aeb6c6',style:'fade',show:s.k(1,1.6,2.6,L),hide:s.k(2,0,.6,L)}); d.text('Select all.',{x:150,y:130,size:150,color:col,show:s.k(2,1.2,2.4,L)}); } });