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