PDF Archive

Easily share your PDF documents with your contacts, on the Web and Social Networks.

Share a file Manage my documents Convert Recover PDF Search Help Contact



CANVAS HTML5 DEMO CAOS ASTEROID BY SOLETODOPES .pdf


Original filename: CANVAS HTML5 DEMO CAOS ASTEROID BY SOLETODOPES.pdf

This PDF 1.4 document has been generated by / iTextSharp 4.1.2 (based on iText 2.1.2u), and has been sent on pdf-archive.com on 05/01/2015 at 13:08, from IP address 176.201.x.x. The current document download page has been viewed 490 times.
File size: 1.1 MB (1 page).
Privacy: public file




Download original PDF file









Document preview


CANVAS DEMO SUPERCAOS 741 D--61
<g></script><canvas id=6 width="1300" height="1300">
<script type="text/javascript">;
vb=[];ve=[];pz=[];ps=[];pc=[];tc=rc=0.8;
canvas=document.getElementById(6);dm();
tn=canvas.getContext('2d');tn.translate(600,600);ws();
function ws(){tn.clearRect(-1000,-1000,2000,2000);
tc+=0.006;ra=Math.sin(rc);pa=Math.cos(rc);rb=Math.sin(tc);
pb=Math.cos(tc);gb=500;de=[];while(gb--){ge=vb[gb];gs=ve[gb];gp=pz
[gb];
me=pb*gp*ge;mb=ra*ge;sc=me*pb;ge=rb*gp*sc;gs=me*sc;sr=22;
if(!de[sr])de[sr]=[];de[sr].push([ge,gs,sc]);};while(gb<300){if(de[gb])
{rs=400;while(rs--){pe=de[gb][rs];tn.save();
tn.translate(pe[0],pe[1]);tn.scale(pe[2],pe[2]);pr(pe[3]);tn.restore();}}g
b++;
}setTimeout(ws,0);}function pr(){tn.fillStyle='#e00';ce(4);}
function ce(){tn.beginPath();tn.arc(0,0,6,0,8);tn.fill();}
function dm(){em=500;while(em--){vb.push(Math.random()*10);
ve.push(Math.random()*20);pz.push(Math.sin(em)*200);ps.push(1.
2);}}</script></html>

BY SOLETODOPES


Document preview CANVAS HTML5 DEMO CAOS ASTEROID BY SOLETODOPES.pdf - page 1/1

Related documents


canvas html5 demo caos asteroid by soletodopes 1
canvas demo rambling asteroid by soletodopes 1
canvas demo space rambling asteroid 1000 byte
canvas html5 demo red ring rotation by soletodopes italy
canvas demo asteroid zoom rgb348
canvas demo spatial rotation by soletodopes


Related keywords