diff --git a/assets/icon/android-chrome-192x192.png b/assets/icon/android-chrome-192x192.png new file mode 100644 index 0000000..38e4467 Binary files /dev/null and b/assets/icon/android-chrome-192x192.png differ diff --git a/assets/icon/android-chrome-512x512.png b/assets/icon/android-chrome-512x512.png new file mode 100644 index 0000000..157d0e5 Binary files /dev/null and b/assets/icon/android-chrome-512x512.png differ diff --git a/assets/icon/apple-touch-icon.png b/assets/icon/apple-touch-icon.png new file mode 100644 index 0000000..5642f70 Binary files /dev/null and b/assets/icon/apple-touch-icon.png differ diff --git a/assets/icon/browserconfig.xml b/assets/icon/browserconfig.xml new file mode 100644 index 0000000..b3930d0 --- /dev/null +++ b/assets/icon/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #da532c + + + diff --git a/assets/icon/favicon-16x16.png b/assets/icon/favicon-16x16.png new file mode 100644 index 0000000..546646e Binary files /dev/null and b/assets/icon/favicon-16x16.png differ diff --git a/assets/icon/favicon-32x32.png b/assets/icon/favicon-32x32.png new file mode 100644 index 0000000..bcc6043 Binary files /dev/null and b/assets/icon/favicon-32x32.png differ diff --git a/assets/icon/favicon.ico b/assets/icon/favicon.ico new file mode 100644 index 0000000..7d5f435 Binary files /dev/null and b/assets/icon/favicon.ico differ diff --git a/assets/icon/mstile-150x150.png b/assets/icon/mstile-150x150.png new file mode 100644 index 0000000..c10fc4c Binary files /dev/null and b/assets/icon/mstile-150x150.png differ diff --git a/assets/icon/safari-pinned-tab.svg b/assets/icon/safari-pinned-tab.svg new file mode 100644 index 0000000..ea47ff8 --- /dev/null +++ b/assets/icon/safari-pinned-tab.svg @@ -0,0 +1,584 @@ + + + + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/icon/site.webmanifest b/assets/icon/site.webmanifest new file mode 100644 index 0000000..b20abb7 --- /dev/null +++ b/assets/icon/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..8be4b5d --- /dev/null +++ b/index.html @@ -0,0 +1,244 @@ + + + + + Donut + + + + Donut + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

Nemanja Mitric

+

Donut

+
+ + +
+
+
+
+

+            
+
+
                                     const areaW=80;
+                               const areaH = 24;const area
+                         =new Array( areaW*areaH ).fill(0);const
+                    areaElement = document.getElementById( 'areaId');
+                const clearArea = () =>{ area.fill(0); };const drawToArea
+            =(x, y, color)=>{if(x >= 0 && x < areaW && y>=0 && y<areaH){const
+         index=y * areaW+x; area[index] = color; }}; const renderArea= () =>{let
+      result = ''; for (let i = 0; i<area.length; i++) {result+=" .,-~:;=!*#$"[area
+    [i] || 0]; if((i + 1)%areaW===0){result += '\n';}}areaElement.textContent=result;
+  };const main=()=>{ clearArea(); let               A=0;let B=0;const sin=(x)=>{return(
+ Math.sin(x))}; const cos = (x)=>{                     return Math.cos(x);}; const floor
+ =(x) =>{return Math.floor(x);};                         const round = (x)=>{return Math
+.round(x);}; const memset=(arr,                           val, count) => { for (let i = 0;
+i < count; i++) {arr[i]=val;}};                           let updateArea= ()=>{clearArea()
+ ;for(let j = 0;j < 6.28;j+=0.07                         ){for (let i=0; i <6.28;i+=0.02)
+ {const c = sin(i); const d=cos(j)                     ;const e = sin(A);const f = sin(j)
+  ;const g =cos(A);const h =d+2;const               D=1/(c* h * e + f * g + 5);const l=
+    cos(i); const m = cos(B);const n = sin(B); const t = c * h *g - f*e;const x=round
+      (40 + 30 * D * (l * h * m - t * n)); const y = round(12 + 15 * D * (l * h*n +
+         t * m));const o = x + areaW * y; const N = round(8 * ((f * e- c * d*g)*
+            m - c * d * e - f *g-l * d * n)); if (y >= 0 && y < areaH && x>=0
+                && x < areaW && D > area[o] ) { area[o] = D; drawToArea(x
+                   ,y,N > 0?N:0);}}}};const loop= () =>{ updateArea()
+                         ;renderArea() ; A += 0.04 ; B += 0.02;
+                               requestAnimationFrame(loop)}
+                                      loop()};main()
+
+
+
+ + +