Team:Acton-BoxboroughRHS/Simulations
From 2014hs.igem.org
(Difference between revisions)
Line 124: | Line 124: | ||
<br></br> | <br></br> | ||
- | <canvas id ="p_canvas"></canvas> | + | <canvas id ="p_canvas" height="500" width="500"></canvas> |
<script> | <script> | ||
pc=document.getElementById("p_canvas"); | pc=document.getElementById("p_canvas"); | ||
ctx=canvas.getContext("2d"); | ctx=canvas.getContext("2d"); | ||
- | + | canvas.width=500; | |
+ | canvas.height=500; | ||
+ | |||
+ | ctx.strokeStyle="black"; | ||
+ | ctx.beginPath(); | ||
+ | ctx.rect(0,0, canvas.width, canvas.height) | ||
+ | ctx.stroke(); | ||
+ | ctx.closePath(); | ||
+ | |||
ctx.strokeStyle="green"; | ctx.strokeStyle="green"; | ||
ctx.beginPath(); | ctx.beginPath(); |
Revision as of 01:54, 26 May 2014
Note that this is test JavaScript:
Message