Team:Cornell/javascripts/mycodraw

From 2013.igem.org

Revision as of 17:46, 16 June 2013 by R.Lizarralde (Talk | contribs)

function mycoDraw(canvas) { var canvas = document.getElementById("mycodraw"); var img = canvas.children[0]; //canvas.width = img.width; //canvas.height = img.height; var context = canvas.getContext("2d"); context.drawImage(img); alert(img.src); }