Puoi aprire il codice e modificare la funzione: vedi l'Help
You can open the Code and modify the function: see the Help
HELP
function ROTx(x,y,A) {AA = A*Math.PI/180; return x*Math.cos(AA)-y*Math.sin(AA)} function ROTy(x,y,A) {AA = A*Math.PI/180; return x*Math.sin(AA)+y*Math.cos(AA)} aX = -8; bX = 12; aY = -5; bY = 10 Dx = 1; Dy = 1 C1="black"; C2="blue"; C3="green" R=1; P=0; Q=0; gr1=0; gr2=360 function XX1(t) {x=Math.cos(t)*R+P; if(Ix(x)<1){x=1/0}; return x} function YY1(t) {y=Math.sin(t)*R+Q; if(Ix(x)<1){x=1/0}; return y}; t1=Math.PI/180*gr1; t2=Math.PI/180*gr2 for(j=0;j<=5e3;j=j+1) {t=t1+(t2-t1)/5e3*(j-1);L1x[j]=XX1(t);L1y[j]=YY1(t)} for(j=0;j<=5e3;j=j+1) {L2x[j]=L1x[j]*8; L2y[j]=L1y[j]*4} A = -30; Q2x=[4]; Q2y=[3] for(i=0;i<=5e3;i=i+1) { L3x[i]=ROTx(L2x[i],L2y[i],A)+4; L3y[i]=ROTy(L2x[i],L2y[i],A)+3 }