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 DEMO SPATIAL ROTATION BY SOLETODOPES .pdf


Original filename: CANVAS DEMO SPATIAL ROTATION 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 16/10/2014 at 14:29, from IP address 158.148.x.x. The current document download page has been viewed 302 times.
File size: 1.2 MB (1 page).
Privacy: public file




Download original PDF file









Document preview


HTML5 DEMO SPACE 317 by SOLETODOPES
<htmlscript></script><canvas id=6 width="1300" height="1300">
<script type="text/javascript">;var vb=[];ve=[];pz=[];ps=[];pc=[];
ng=250;tc=0;rc=0.82;
canvas=document.getElementById(6);dm();tn=canvas.getContext('2
d');
tn.translate(600,600);ws();function
ws(){tn.clearRect(-1000,-1000,1600,1600);
tc+=0.042;ra=Math.sin(rc);pa=Math.cos(rc);rb=Math.sin(tc);pb=Mat
h.cos(tc);
gb=600;var
de=[];while(gb--){ge=vb[gb];gs=ve[gb];gp=pz[gb];me=pb*gp-rb*ge;
mc=rb*gp+pb*ge;ma=pa*gs*ra;mb=ra*gs+pa*me;
na=mc;nb=ma;sc=ng/(ng+me);ge=na*sc;gs=nb*sc;gp=me;sr=0;
if(!de[sr]){de[sr]=[];}de[sr].push([ge,gs,sc*ps[gb],ms]);}
rs=0;var ms=de.length;while(gb<ms){if(de[gb])
{rs=de[gb].length;while(rs--){pe=de[gb][rs];
tn.save();tn.translate(pe[0],pe[1]);tn.scale(pe[2],pe[2]);ta(pe[3]);tn.re
store();}}
gb++;}setTimeout(ws,25);}function ta(){tn.fillStyle='#20e';
hr();}function hr(){tn.beginPath();tn.arc(0,30,6,0,8);tn.fill();}
function dm(){em=450;while(em--)
{vb.push(Math.cos(em)*170);ve.push(Math.sin(tc)*Math.random()*1
22-200);
pz.push(Math.sin(em)*160+Math.random()*60);ps.push(0.8);}}</scr
ipt></html>

BY SOLETODOPES


Document preview CANVAS DEMO  SPATIAL ROTATION BY SOLETODOPES.pdf - page 1/1

Related documents


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


Related keywords