Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 153: Line 153:
  //Create canvas
  //Create canvas
  simulations[id].canv= document.createElement('canvas');
  simulations[id].canv= document.createElement('canvas');
-
  simulations[id].ctx= canv.getContext("2d");
+
  simulations[id].ctx= simulations[id].getContext("2d");
  simulations[id].canv.id= "simbox_canv_"+id;
  simulations[id].canv.id= "simbox_canv_"+id;
  simulations[id].canv.width= width;
  simulations[id].canv.width= width;

Revision as of 01:06, 3 August 2013