{"id":292877,"date":"2019-08-01T15:00:31","date_gmt":"2019-08-01T15:00:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=292877"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=292877","title":{"rendered":"\u0423\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0437\u0432\u0435\u0437\u0434\u043d\u043e\u0435 \u043d\u0435\u0431\u043e \u043d\u0430 WebGL \u0432 1009 \u0431\u0430\u0439\u0442 JavaScript"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<blockquote><p>\u0414\u0432\u0435 \u0432\u0435\u0449\u0438 \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0434\u0443\u0448\u0443 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u043e\u0432\u044b\u043c \u0438 \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0441\u0438\u043b\u044c\u043d\u044b\u043c \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0438 \u0431\u043b\u0430\u0433\u043e\u0433\u043e\u0432\u0435\u043d\u0438\u0435\u043c, \u0447\u0435\u043c \u0447\u0430\u0449\u0435 \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u043c\u044b \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u044f\u0435\u043c \u043e \u043d\u0438\u0445, \u2014 \u044d\u0442\u043e \u0437\u0432\u0435\u0437\u0434\u043d\u043e\u0435 \u043d\u0435\u0431\u043e \u043d\u0430\u0434\u043e \u043c\u043d\u043e\u0439 \u0438 \u043c\u043e\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043a\u043e\u043d \u0432\u043e \u043c\u043d\u0435. <em>\u0418\u043c\u043c\u0430\u043d\u0443\u0438\u043b \u041a\u0430\u043d\u0442<\/em><\/p><\/blockquote>\n<p>JS1k \u2014 \u0435\u0436\u0435\u0433\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435, \u0433\u0434\u0435 \u043d\u0430\u0434\u043e \u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0434\u0435\u043c\u043e, \u0438\u0433\u0440\u0443 \u0438\u043b\u0438 \u0432\u0441\u0435 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u0432 1024 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 JavaScript. \u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u043c\u043e\u0435 \u0434\u0435\u043c\u043e \u0437\u0430\u043d\u044f\u043b\u043e \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e (\u0434\u043e \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0434\u0432\u0430 \u0431\u0430\u043b\u043b\u0430). \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0435\u043c\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/js1k.com\/2019-x\/demo\/4238\">\u0441\u0430\u0439\u0442\u0435 JS1k<\/a>. \u0423 \u043a\u043e\u0433\u043e \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/jsUlPMq-GVI?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 <a href=\"https:\/\/github.com\/denys-potapov\/js1k\">\u043b\u0435\u0436\u0438\u0442 \u043d\u0430 github<\/a>. \u0410 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0440\u0430\u0437\u0431\u043e\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0442 JavaScript \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"diskalaymer\">\u0414\u0438\u0441\u043a\u0430\u043b\u0430\u0439\u043c\u0435\u0440<\/h2>\n<p>  <\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u0430 \u0434\u0435\u043c\u043e \u2014 <a href=\"https:\/\/www.shadertoy.com\/view\/XlfGRj\">\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u0448\u0435\u0439\u0434\u0435\u0440<\/a> \u0430\u0432\u0442\u043e\u0440\u0441\u0442\u0432\u0430 Pablo Roman Andrioli. Pablo \u2014 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0444\u0440\u0430\u043a\u0442\u0430\u043b\u0430\u043c\u0438, \u0438 \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 <a href=\"http:\/\/www.fractalforums.com\/new-theories-and-research\/very-simple-formula-for-fractal-patterns\/\">fractalforums<\/a> \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439. \u041c\u043e\u0435\u0439 \u0436\u0435 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0431\u044b\u043b\u043e \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0448\u0435\u0439\u0434\u0435\u0440 \u0438 WebGL \u043a\u043e\u0434 \u0432 1024 \u0431\u0430\u0439\u0442\u0430.<\/p>\n<p>  <\/p>\n<h2 id=\"inicializaciya-webgl\">\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f WebGL<\/h2>\n<p>  <\/p>\n<p>\u041e\u0431\u0435\u0440\u0442\u043a\u0430 JS1k \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0434\u0435\u043c\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 WebGL \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>g<\/strong>. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u044d\u0442\u043e, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 WebGL \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u043d\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0435\u0440\u0448\u0438\u043d\u043d\u044b\u0439 \u0448\u0435\u0439\u0434\u0435\u0440 \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e 159 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">\/\/ Define a new program p=g.createProgram(); \/\/ Basic vertex shader s=g.createShader(VERTEX_SHADER); g.shaderSource(s,\"attribute vec2 p;void main(){gl_Position=vec4(p,0,1);}\"); \/\/ Compile and attach it to the program g.compileShader(s); g.attachShader(p,s);<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432\u043e \u0432\u0441\u0435\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445 JS1k \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043b\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0440\u044e\u043a \u0441 \u0441\u0438\u043d\u043e\u043d\u0438\u043c\u0430\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">for(i in g){   g[i[0] + i[6]] = g[i]; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0426\u0438\u043a\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u0438 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0447\u043b\u0435\u043d\u0430) WebGL \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0441\u0438\u043d\u043e\u043d\u0438\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438 7 \u0431\u0443\u043a\u0432\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <strong>c<\/strong>reate<strong>P<\/strong>rogram \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f <strong>cP<\/strong>, <strong>s<\/strong>hader<strong>S<\/strong>ource \u2014 <strong>sS<\/strong>, \u0438 \u0442.\u0434. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u043c\u043b\u044f\u044f \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 <code>with(g)<\/code> (\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Statements\/with\">\u043d\u0435\u043b\u044c\u0437\u044f<\/a>), \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">with(g){   p=cP();   sS(s=cS(35633),'attribute vec2 p;void main(){gl_Position=vec4(p,1,1);}');   ce(s);   aS(p,s); }<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"minifikaciya-sheydera\">\u041c\u0438\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0448\u0435\u0439\u0434\u0435\u0440\u0430<\/h2>\n<p>  <\/p>\n<p>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0435\u0439\u0434\u0435\u0440 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 1100 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f: \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043b\u0438\u0448\u043d\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0433\u043e \u044f \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u043a\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 <a href=\"http:\/\/ctrl-alt-test.fr\/minifier\/index\">\u043e\u043d\u043b\u0430\u0439\u043d \u043c\u0438\u043d\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/a>. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043e\u0442 \u0448\u0435\u0439\u0434\u0435\u0440\u0430 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 500 \u0431\u0430\u0439\u0442.<\/p>\n<p>  <\/p>\n<h2 id=\"jscrush\">JSCrush<\/h2>\n<p>  <\/p>\n<p>JSCrush \u2014 \u0434\u0435 \u0444\u0430\u043a\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u043b\u044f \u0441\u0436\u0430\u0442\u0438\u044f \u043a\u043e\u0434\u0430 \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f. \u0423\u0442\u0438\u043b\u0438\u0442\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u0434, \u0432 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">_='(i  a.style=&#8230;<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">_='(i  a.style=\"widMj%;hEjvh;:left\",g)g[i[0]+i[6]]=g[i];wiMO.u=g.G1f,x=y=k=g)p=cP(35633\"tribute 2 p    gl_Posit=4?FN\"precis mediump ;G Zt,a,x,y   Uf`ord.rg\/64!-.f.=a;Zc=+xz,v=+yz;m2 m$cc-cc)s$vv-vv)fJf#Ur`Q,,r+`t*2.,t,-2.rJr#Zg=.1,b=Q;Ui`!Kl=Rl&lt;2Rl++){Uo=r+f*;oQ)-mod(o,2.))Ze,n=e=!;Kd=Rd&lt;2Rd++)oo)\/dot(o,o)-3,n+o)-ee=oif(l&gt;6)Q-max(!,.3-i+=b+g,g,g)*n*5*b;.73;g+=.1;}i=mix(i)i,.85lor=4(i*.01.lo?ug?bfO=34962,cB()eV(0vA(2,5120bDO,Tw Int8Array([|,|]35044o=,(Lt@-oa@TrHE\/TrWidMx@xy@ydr(6,3requestAnimFrame(L)})(down=upk^=1},movek&amp;&amp;(xX,yY)};),3=funct(e){uOf?,\"flo}@ce(saS?,slengM(onmouse    ;void ma(){Tw De\/1e5);incos(for=abs(gl_FragCo,1g*(sS(s=cS(n*n*.001at.5vecionb*=s(=e.page0,!0.#.r=s;$=m2(?(p@\"EeightGunimJ.rm;K(t MthO(gQ1.R0;TneU Z `=j:100z\/50!|-3';for(Y in $='|zj`ZUTRQOMKJGE@?$#!  ')with(_.split($[Y]))_=join(pop());eval(_)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b JSCrush \u043c\u043e\u0436\u043d\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/keithclark.co.uk\/labs\/jspackvis\/\">\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430<\/a>. \u0418\u043b\u0438 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0432 <a href=\"http:\/\/nikhilism.com\/post\/2012\/demystifying-jscrush\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>. \u0412 \u0446\u0435\u043b\u043e\u043c, \u044d\u0442\u043e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u043c:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435<\/li>\n<li>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u0432 \u043a\u043e\u0434\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430<\/li>\n<li>\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b<\/li>\n<li>\u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c 1-3, \u043f\u043e\u043a\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/li>\n<\/ol>\n<p>  <\/p>\n<h2 id=\"optimizaciya\">\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0443 \u043c\u0435\u043d\u044f \u0432 \u0437\u0430\u043f\u0430\u0441\u0435 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0435\u0449\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 30 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u0435\u043c\u043a\u0438, \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 canvas\u2019\u0430: \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d \u0438\u043b\u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d \u2014 \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u043d\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u0448\u0435\u0439\u0434\u0435\u0440 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e. \u0412\u044b\u0445\u043e\u0434\u043e\u043c \u0441\u0442\u0430\u043b\u043e \u2014 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 JS1k canvas\u2019\u0430 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u044f \u0432\u044b\u0431\u0440\u0430\u043b 640\u0445640), \u0430 \u043f\u043e\u0442\u043e\u043c \u0432 \u043a\u043e\u0434\u0435 \u0435\u0433\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">a.style='width:100%;height:100vh;float:left';<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d, \u043d\u043e \u0448\u0435\u0439\u0434\u0435\u0440 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 canvas.<\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/462115\/\"> https:\/\/habr.com\/ru\/post\/462115\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<blockquote><p>\u0414\u0432\u0435 \u0432\u0435\u0449\u0438 \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0434\u0443\u0448\u0443 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u043e\u0432\u044b\u043c \u0438 \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0441\u0438\u043b\u044c\u043d\u044b\u043c \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0438 \u0431\u043b\u0430\u0433\u043e\u0433\u043e\u0432\u0435\u043d\u0438\u0435\u043c, \u0447\u0435\u043c \u0447\u0430\u0449\u0435 \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u043c\u044b \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u044f\u0435\u043c \u043e \u043d\u0438\u0445, \u2014 \u044d\u0442\u043e \u0437\u0432\u0435\u0437\u0434\u043d\u043e\u0435 \u043d\u0435\u0431\u043e \u043d\u0430\u0434\u043e \u043c\u043d\u043e\u0439 \u0438 \u043c\u043e\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043a\u043e\u043d \u0432\u043e \u043c\u043d\u0435. <em>\u0418\u043c\u043c\u0430\u043d\u0443\u0438\u043b \u041a\u0430\u043d\u0442<\/em><\/p><\/blockquote>\n<p>JS1k \u2014 \u0435\u0436\u0435\u0433\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435, \u0433\u0434\u0435 \u043d\u0430\u0434\u043e \u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0434\u0435\u043c\u043e, \u0438\u0433\u0440\u0443 \u0438\u043b\u0438 \u0432\u0441\u0435 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u0432 1024 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 JavaScript. \u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u043c\u043e\u0435 \u0434\u0435\u043c\u043e \u0437\u0430\u043d\u044f\u043b\u043e \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e (\u0434\u043e \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0434\u0432\u0430 \u0431\u0430\u043b\u043b\u0430). \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0435\u043c\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/js1k.com\/2019-x\/demo\/4238\">\u0441\u0430\u0439\u0442\u0435 JS1k<\/a>. \u0423 \u043a\u043e\u0433\u043e \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/jsUlPMq-GVI?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 <a href=\"https:\/\/github.com\/denys-potapov\/js1k\">\u043b\u0435\u0436\u0438\u0442 \u043d\u0430 github<\/a>. \u0410 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0440\u0430\u0437\u0431\u043e\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0442 JavaScript \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u043e\u0432.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-292877","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292877"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292877\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}