Team:Gifu

From 2014.igem.org

(Difference between revisions)
Line 68: Line 68:
if(rad==270){rad-=2,k-=2};
if(rad==270){rad-=2,k-=2};
if(rad>=360){rad=0};
if(rad>=360){rad=0};
-
x=r*Math.cos(Math.PI/180*rad);
+
x=r*Math.cos(rad);
-
y=r*Math.sin(Math.PI/180*rad);
+
y=r*Math.sin(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:11, 1 September 2014

factory1