Team:Acton-BoxboroughRHS/Simulations

From 2014hs.igem.org

(Difference between revisions)
Line 124: Line 124:
         <br></br>
         <br></br>
      
      
-
       <canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3;">
+
       <canvas id="myCanvas" width="500" height="500" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>
Your browser does not support the HTML5 canvas tag.</canvas>
         <script>
         <script>
Line 137: Line 137:
         ctx.stroke();
         ctx.stroke();
-
         // Green rectangle
+
          
-
        ctx.beginPath();
+
-
        ctx.lineWidth="4";
+
-
        ctx.strokeStyle="green";
+
-
        ctx.rect(30,30,50,50);
+
-
        ctx.stroke();
+
-
 
+
-
        // Blue rectangle
+
-
        ctx.beginPath();
+
-
        ctx.lineWidth="10";
+
-
        ctx.strokeStyle="blue";
+
-
        ctx.rect(50,50,150,80);
+
-
        ctx.stroke();
+
         </script>
         </script>

Revision as of 02:01, 26 May 2014

Welcome to the ABRHS iGEM team

ABRHS
Simulations

Note that this is test JavaScript:



Your browser does not support the HTML5 canvas tag.

Message