Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 51: | Line 51: | ||
if(rad>=360){rad=0;} | if(rad>=360){rad=0;} | ||
else{rad+=2}; | else{rad+=2}; | ||
- | x=r*Math.cos(rad); | + | x=r*Math.cos(Math.PI/180*rad); |
- | y=r*Math.sin(rad); | + | y=r*Math.sin(Math.PI/180*rad); |
circle.style.top=y+200+"px"; | circle.style.top=y+200+"px"; | ||
circle.style.left=x+200+"px"; | circle.style.left=x+200+"px"; | ||
Line 88: | Line 88: | ||
if(rad>=360){rad=0;} | if(rad>=360){rad=0;} | ||
else{rad+=2;}; | else{rad+=2;}; | ||
- | x=r*Math.cos(rad); | + | x=r*Math.cos(Math.PI/180*rad); |
- | y=r*Math.sin(rad); | + | y=r*Math.sin(Math.PI/180*rad); |
circle.style.top=y+200+"px"; | circle.style.top=y+200+"px"; | ||
circle.style.left=x+200+"px"; | circle.style.left=x+200+"px"; |
Revision as of 11:18, 1 September 2014