Skip to content

Commit

Permalink
Merge pull request #8 from BilkentCompGen/random-guy's-donut
Browse files Browse the repository at this point in the history
I added an animated ASCII donut to my page
  • Loading branch information
calkan authored Mar 1, 2024
2 parents 0707b01 + 726de89 commit 4926e76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions team/_posts/2024-02-27-burak-ozturk.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ image: /images/team/burak.jpg

I am a random Computer Science student at Bilkent University who started to show up at AlkanLab and do things.

<pre id="donutBox" style="display: inline-block; background-color: black; color: white; padding: 60px; white-space: pre-wrap;" onclick="(function() { var _onload = function() { var pretag = document.getElementById('user-content-donutbox'); var tmr1 = undefined; var A=1, B=1; var asciiframe=function() { var b=[]; var z=[]; A += 0.07; B += 0.03; var cA=Math.cos(A), sA=Math.sin(A), cB=Math.cos(B), sB=Math.sin(B); for(var k=0;k<1760;k++) { b[k]=k%80 == 79 ? "\n" : " "; z[k]=0; } for(var j=0;j<6.28;j+=0.07) { var ct=Math.cos(j),st=Math.sin(j); for(i=0;i<6.28;i+=0.02) { var sp=Math.sin(i),cp=Math.cos(i), h=ct+2, D=1/(sp*h*sA+st*cA+5), t=sp*h*cA-st*sA; var x=0|(40+30*D*(cp*h*cB-t*sB)), y=0|(12+15*D*(cp*h*sB+t*cB)), o=x+80*y, N=0|(8*((st*sA-sp*ct*cA)*cB-sp*ct*sA-st*cA-cp*ct*sB)); if(y<22 && y>=0 && x>=0 && x<79 && D>z[o]) { z[o]=D; b[o]=".,-~:;=!*#$@"[N>0?N:0]; } } } pretag.innerHTML = b.join(""); }; window.anim = function() { if(tmr1 === undefined) { tmr1 = setInterval(asciiframe, 75); } else { clearInterval(tmr1); tmr1 = undefined; } }; asciiframe(); window.anim(); }; if (document.all) window.attachEvent('onload',_onload); else window.addEventListener('load',_onload,false); })();"></pre>

### Education

- B.Sc., Computer Engineering, 2019 - present.
Expand Down

0 comments on commit 4926e76

Please sign in to comment.