Gifu/rensyuu
From 2014.igem.org
(Difference between revisions)
(10 intermediate revisions not shown) | |||
Line 47: | Line 47: | ||
<!-- | <!-- | ||
var r=100; | var r=100; | ||
- | var rad= | + | var rad=180; |
var x; | var x; | ||
var y; | var y; | ||
Line 60: | Line 60: | ||
if(m==1){ | if(m==1){ | ||
r=200; | r=200; | ||
- | if(rad== | + | if(rad==540){rad=0; m=0;} |
else{rad+=2}; | else{rad+=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
Line 68: | Line 68: | ||
- | k+= | + | k+=1; |
- | + | ||
circle.style.transform="rotate("+k+"deg)"; | circle.style.transform="rotate("+k+"deg)"; | ||
} | } | ||
Line 84: | Line 84: | ||
y=r*Math.sin(Math.PI/180*rad); | y=r*Math.sin(Math.PI/180*rad); | ||
circle.style.top=y+180+"px"; | circle.style.top=y+180+"px"; | ||
- | circle.style.left=x+ | + | circle.style.left=x+120+"px"; |
+ | |||
k-=2; | k-=2; |
Latest revision as of 10:39, 9 September 2015