// THE UNICODE SHOW // version II // Copyright 2025 Chasyxx. This is licensed under CC-BY-SA-4.0 // https://creativecommons.org/licenses/by-sa/4.0/ // play this in https://dollchan.net/bb/ // or https://chasyxx.github.io/EnBeat_NEW/ // FLOATBEAT 32000HZ // https://reddit.com/u/Chasyxx // https://dollchan.net/btb/red/756.html // changes from v1 to v2: // * changed sr to 32kHz // * made the EAS sound less realistic (don't want to confuse anyone) // * 60 fps now // * some musical revisions lerp=(a,t,b)=>a*(1-t)+b*t, n=x=>2**(x/12), s=32000, H=x=>2**(x/12)/s*PI*2*440, sc=x=>x*s, cutoff16=15.50, _=-1e300, r=(o,l)=>Array(l).fill(o).flat(9), acc=(n,x)=>(this[n]??=0,this[n]+=x), rvrb=(x,y,z)=>(rvrbc=x%256+rvrba[t%rvrbn],rvrba[t%rvrbn]=rvrbc*z,rvrbc), dontMoveTheBoxABunchAsImTypingYouCodeBag=0, t||( rvrba=Array(rvrbn=16384).fill(0.5), lt9=t9=0, lw=w=0, bw=0 ), // t+=sc(94.1)-(sc(94.1)%307), p2t=t-sc(38), p2t1=p2t/s*16%128, lt9=t9, t9=t/s*9%1, (lt9>t9)&&(lw=w,w=random()), bw=lerp(bw,0.1,random()*2-1), (t%(sc(1/60)|0))||( // 60 hz is the most common monitor refresh rate $="", top="+---------------------------------------+\n", t>=sc(cutoff16)&&(top="╔═══════════════════════════════════════╗\n"), bottom=top, t>=sc(cutoff16)&&(bottom="╚═══════════════════════════════════════╝\n"), sides="| |\n", t>=sc(cutoff16)&&(sides="║ ║\n"), (t>sc(0.1)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=top), (t>sc(0.2)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=sides), (t>sc(0.3)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=sides), (t>sc(0.4)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=sides), (t>sc(0.5)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=sides), (t>sc(0.6)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=sides), (t>sc(0.7)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=sides), (t>sc(0.8)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=sides), (t>sc(0.9)||dontMoveTheBoxABunchAsImTypingYouCodeBag)&&($+=bottom), $BOX=$, insert=(x,y,s,ns=0)=>{ x|=0;y|=0; let cx = x; let cy = y; for(let i = 0; i < s.length; i++) { if(s[i]==="\n"){ cx=x; cy++; continue; } const $r = $.split('\n'); if(cy<0||cy>=$r.length) continue; const $l = $r[cy].split(''); if(cx<0||cx>=$l.length) continue; if(!ns||s[i]!==' ')$l[cx] = s[i]; $r[cy] = $l.join(''); $ = $r.join('\n'); cx++; } }, static=(x,y,w,h,s=3,p=1)=>{ for(let i = 0; i < h; i++) { for(let j = 0; j < w; j++) { if(random()>p**2) continue; const S = String.fromCharCode((Math.random()*[12,27,128,160][abs(s)]|0)+(s<0?"!".charCodeAt(0):0x2500)); insert(x+j,y+i,S) } } }, $$=_=>{ throw new TypeError("\n"+$.trim().replace(/(\s|^)/g,"\u200c$1")+" is not a function"); }, (tsc(3))&&insert(15,2,"Welcome to".slice(0, (t-sc(3))/sc(0.0625)|0 )), (t>sc(5))&&insert(12,4,"THE UNICODE SHOW".slice(0, (t-sc(5))/sc(0.0625)|0 )), (t>sc(5))&&insert(15,5,"version II".slice(0, (t-sc(5))/sc(0.0625)|0 )), (t>sc(7)&&tsc(7)&&tsc(11)&&tsc(11)&&tsc(2))&&static(1,1,39,7,t>sc(cutoff16)?3:-1,1-min(0.9,(t/s-2)/3)) )||(t>sc(16)&&t{ if(tsc(21)?"%":t>sc(19)?"╖╜╙╓"[t/sc(0.2)&3]:" ") .replaceAll('%',t>sc(22)?"┼╳"[t/sc(0.5)&1]:" ") ) if(t>sc(32.3)) insert(1,1, `..│%%%%%%│%%%│%%%%%%%%%╳......╱╬╲_..... @..│%%┌───┤%%%└┐%%┌────╱╓╲....╱╬╬╬╬╲.... @──┴──┤%%%│%%%%├──┤###╱ ║ ╲...│╬╬╬╬╬╲... @.....│%%%└┬───┤%%│##╱ ╜ ╲..╲╬╬╬╬╬╱... @.....│%%%%│%%%│%%└─╱___╓___╲..‾‾‾‾‾....` .replaceAll('@','')); const S = "BREAKING NEWS │ Hostile beings spotted across Antubantia ║ASN 16║ "; const b = t/sc(0.1)|0; for(let i = 0; i < 39; i++) { const c = S[(b+i)%S.length]; insert(1+i,7,c); } switch(t/s|0) { case 16: insert(2,2,"Currently we do\nnot know the source\nof the beings,") break; case 17: case 18: insert(2,2,"However,") break; case 19: case 20: case 21: insert(2,1,"the origin of\nthe anomaly is\nsuspected to be\nOrpanta County.") break; case 22: case 23: case 24: case 25: insert(2,1,"We reccomend to\nevacuate the\nnearby area while\nlaw enforcement\ninvestigates.") break; case 26: case 27: case 28: insert(2,1,"If possible,\ndo not\nconfront the\nbeings.") break; case 29: case 30: case 31: case 32: insert(2,1,"There is no\nconfirmed way\nto avoid being\nabsorbed.") break; case 33: case 34: case 35: insert(2,1,"Currently,\nmeterological\nstorms are also\non the rise.") break; case 36: insert(2,2,"This effect is\nmuch more powerful\nnear mountains.") break; } })(), static(1,1,39,7,3,1-min(0.9,(t/s-16)/3)) )||(t>sc(36.55)&&tsc(38)&&tx.substr(max(0,min(35,p2t1)),39)).join("\n") .replaceAll('@','')), static(1,1,39,7,2,0.5) )||(t>sc(40)&&tsc(43)&&tsc(44)&&t{ let le = 0; let re = 0; let cle = 0; let cre = 0; if(t>sc(400/9)&&tsc(434/9)&&tsc(453/9)&&tsc(458/9)&&tsc(54.31)&&tsc(501/9)&&tsc(506/9)&&tsc(512/9)&&tsc(519/9)&&tsc(520/9)&&tsc(522/9)&&tsc(528/9)&&tsc(560/9)&&tsc(572/9)&&tsc(579/9)&&tsc(579/9)&&tsc(600/9)&&tsc(625/9)&&tsc(658/9)&&tsc(667/9)&&tsc(676/9)&&tsc(684/9)&&tsc(690/9)&&tsc(704/9)&&tsc(453/9)&&tsc(458/9)&&t>2&7) { case 0: insert(5,6,"════"); break; case 1: insert(5,6,"└──┘"); break; case 2: insert(5,6,"┌──┐\n╲__╱"); break; case 3: insert(5,6,"┌──┐"); break; case 4: insert(5,6," ──\n╱__╲"); break; } } if(cre) { $=$BOX; insert(27,1,` ╱ │ ─│ O O │ │ ╱ ╲│ ╲ │ ╲`); cre-=1; switch(cre&3) { case 0: insert(32,2,"┉ ┉"); break; case 1: insert(32,2,"╱ ╲"); break; case 2: insert(32,2,"╲ ╱"); break; case 3: insert(32,2,"~ ╱"); break; } switch(cre>>2&7) { case 0: insert(32,6,"════"); break; case 1: insert(32,6,"└──┘"); break; case 2: insert(32,6,"┌──┐\n╲__╱"); break; case 3: insert(32,6,"┌──┐"); break; case 4: insert(32,6," ──\n╱__╲"); break; } } if(t>sc(501/9)&&tsc(512/9)&&tsc(519/9)&&tsc(520/9)&&tsc(528/9)&&tsc(547/9)&&tsc(579/9)&&tsc(595/9)&&tsc(600/9)&&tsc(607/9)&&tsc(625/9)&&tsc(638/9)&&tsc(676/9)&&tsc(690/9)&&tsc(694/9)&&tsc(711/9)&&tsc(729/9)&&tsc(81.16)&&tsc(83)&&tsc(92)&&tsc(94)&&tsc(107)&&tsc(115)&&tsc(123)&&tsc(131)&&tsc(139)&&tsc(141)&&insert(2,1,"SYSTEM ALERT"), t>sc(94)&&tsc(95)&&tsc(100)&&tsc(108)&&tsc(116)&&tsc(124)&&tsc(132)&&tsc(140)&&tsc(141.1)&&insert(3,4,"Critical wind speed detected.\n\nRetracting antenna."), insert(1,2,"───────────────────────────────────────"), static(1,1,39,7,t>sc(141.3)?3:2,max(0.2,(t/s-144)/5)), t>sc(147.7)&&insert(2,2,' \n CH24 \n ') )||(t>sc(151)&&tsc(147.7)&&insert(3,3,'Shutting down.\nGoodbye!') )||(t>sc(165))&&( t>sc(171)&&( (t/s&4)?insert(1,1,"This is the end of\nTHE UNICODE SHOW\n\nLicensed under\nCC-BY-SA-4.0"):insert(1,1,"This is the end of\nTHE UNICODE SHOW\n\nNo two computers have\nthe same symbols.\nI'll post a recording\nwhen I can."), static(1,1,39,7,3,0.5+sin(t/s)*0.2), (t/s&4)&&insert(1,6,"https://creativecommons.org/\nlicenses/by-sa/4.0/") ), insert(25,1, ` └┐ @└┐ └─┰─┐ @ ┝━━┓ ┗┓ ┌ @ └ ┡━━━╋━━╅┘ @ ┌┘ ┗┓ ┃ ┌ @ └┐ ┃ ┗━╾┘ @ ├╼┛ `.replaceAll('@',''),1) ), // $=$BOX, // insert(1,1, // ` // @ ╔═╗ ╔═╗ ╔═╗ ╔═╗ ║ ║ ═╦═ ╔═╗ ║ // @ ║ ║ ║ ║ ║ ║ ║ ║ ║╗ ║ ║ ║ ║ ║ // @ ║ ║ ║═╝ ║═╝ ║═╣ ║ ╚║ ║ ║═╣ ║ // @ ║ ║ ║╚ ║ ║ ║ ║ ║ ║ ║ ║ // @ ╚═╝ ║ ╗ ║ ║ ║ ║ ║ ║ ║ ║ ╝ // @ ` // .replaceAll('@','')), $$() ), pwm=(a,b)=>a<-96?0:(sin(t*H(a))>b)-0.5+b/2, tri1=x=>((x&1)?(1-x%1):(x%1))-0.5, tri=(a,p)=>tri1(t*H(a)/PI)*(sin(tanh(p)*PI)), p1s=t>sc(171)?171:16, p1=(tsc(cutoff16)&&tsc(p1s)&&cbrt(sin(acc("fall",H(61-(max(0,t/s-p1s)*18)))))/4*sqrt(1-tanh((t/s-p1s)/3))+(random()-0.5)*(1-t/sc(0.125)%1)**2*sqrt(t/sc(0.5)%1)*2+pwm((t/s&8||tsc(24)&&tri(-7,(t%sc(8))/s)+tri(-4,((t-sc(0.25))%sc(8))/s)+tri(0,((t-sc(0.5))%sc(8))/s)+tri(-11,((t-sc(3))%sc(8))/s)+tri(-7,((t-sc(3.25))%sc(8))/s)+tri(-2,((t-sc(3.5))%sc(8))/s))+(t>sc(28)&&tri(-12,((t-sc(4))%sc(8))/s)+tri(-7,((t-sc(4.25))%sc(8))/s)+tri(-4,((t-sc(4.25))%sc(8))/s)+tri(-14,((t-sc(6))%sc(8))/s)+tri(-7,((t-sc(6.25))%sc(8))/s)+tri(-5,((t-sc(6.5))%sc(8))/s)))/2, p2=(t>sc(38)&&tt&165&t%255&&t/256*(t&t>>x),crzsca=37649&1<<(t>>12&15)&&128*sin(2048/(t%4096/4)**.0125)+128,((((crzsca|crzscf(12)-crzscf(14)+128)+128)^(t&32&t>>8||t>>6))&255)/256-0.5)+random()/2-0.25, chr1=sin(acc("wp",lerp(400,lerp(lw,t9,w),700)/s*PI*2))*(1-t9)/2, chr2=sin(acc("wp2",lerp(200,lerp(lw,t9,w),500)/s*PI*2))*(1-t9)/2, p3=(t>sc(44)&&tsc(400/9)&&tsc(453/9)&&tsc(458/9)&&tsc(512/9)&&tsc(572/9)&&tsc(595/9)&&tsc(434/9)&&tsc(501/9)&&tsc(520/9)&&tsc(528/9)&&tsc(579/9)&&tsc(676/9)&&tsc(690/9)&&tsc(83.5)&&t>(t/s*512&7)&1?sin(t/s*2700*PI*2):sin(t/s*3700*PI*2)))+((t>sc(90)&&tsc(94)&&t>17)%16)*(1+(3&t>>15))>>(2&t>>13)&16)*8, rvrb(rvrbc*1.00009**(-t/4%16384)%256/4,64,.8)*1.5/127-0.5+random()*0.2-0.1), p1+(( (t>sc(36.55)&&tsc(43)&&tsc(92)&&tsc(141.2)&&tsc(151.1)&&tsc(165)&&t