Gifu/rensyuu2
From 2014.igem.org
(Difference between revisions)
Line 81: | Line 81: | ||
if(rad==-360){rad=180;} | if(rad==-360){rad=180;} | ||
else{rad-=2}; | else{rad-=2}; | ||
- | x= | + | x=l*Math.cos(Math.PI/180*rad); |
- | y= | + | y=l*Math.sin(Math.PI/180*rad); |
circle2.style.top=y+180+"px"; | circle2.style.top=y+180+"px"; | ||
circle2.style.left=x+120+"px"; | circle2.style.left=x+120+"px"; |
Revision as of 10:57, 9 September 2015