Puoi aprire il codice e modificarlo altri grafici
HELP
...
aX = -9; bX = 12; aY = -8; bY = 13
Dx = 1; Dy = 1
...
C0="blue"; C1="black"; C2="green"
n=200; H = 2*Math.PI/n
for(i=0;i<=n; i=i+1) { t = H*i; L0x[i]= 8*Math.cos(t); L0y[i]= 4*Math.sin(t) }
Q0x=[0]; Q0y=[0]
for(i=0;i<=n; i=i+1) { t = H*i; L1x[i]= Math.cos(t); L1y[i]= Math.sin(t) }
// rotazione in verso antiorario attorno a O di A gradi
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)}
// Ruoto L0 e poi lo traslo
Q2x=[4]; Q2y=[3]
for(i=0;i<=n; i=i+1) { L2x[i]=4+ROTx(L0x[i],L0y[i],-30); L2y[i]=3+ROTy(L0x[i],L0y[i],-30) }
...
// Puoi mettere fino a 10 scritte (S) in diverse posizioni (x,y) con T0=["S",x,y],...,T9=["S",x,y]
T0=["B",-5.5,3.5]; T1=["A",-1.5,-0.6]; T2=["C",7.5,6.5]
...