Team:StuyGem NYC

From 2014hs.igem.org

(Difference between revisions)
Line 212: Line 212:
  var mousePos = getMousePos(canvas, evt);
  var mousePos = getMousePos(canvas, evt);
if ((mousePos.x < 250) && (mousePos.y < 250)) {
if ((mousePos.x < 250) && (mousePos.y < 250)) {
-
imageObj.src = 'https://static.igem.org/mediawiki/2014hs/4/42/TeamOn.png';
+
var imageObj = new Image();
-
imageObj2.src = 'https://static.igem.org/mediawiki/2014hs/7/79/Parts.png';
+
      imageObj.onload = function() {
-
imageObj3.src = 'https://static.igem.org/mediawiki/2014hs/1/16/Sponsors.png';
+
        ctx.drawImage(imageObj, 75, 170);
-
imageObj4.src = 'https://static.igem.org/mediawiki/2014hs/9/92/Project.png';
+
      };
 +
      imageObj.src = 'https://static.igem.org/mediawiki/2014hs/4/42/TeamOn.png';
 +
  var imageObj2 = new Image();
 +
      imageObj2.onload = function() {
 +
        ctx.drawImage(imageObj2, 75, 270);
 +
      };
 +
      imageObj2.src = 'https://static.igem.org/mediawiki/2014hs/7/79/Parts.png';
 +
  var imageObj3 = new Image();
 +
      imageObj3.onload = function() {
 +
        ctx.drawImage(imageObj3, 265, 170);
 +
      };
 +
      imageObj3.src = 'https://static.igem.org/mediawiki/2014hs/1/16/Sponsors.png';
 +
  var imageObj4 = new Image();
 +
      imageObj4.onload = function() {
 +
        ctx.drawImage(imageObj4, 265, 270);
 +
      };
 +
      imageObj4.src = 'https://static.igem.org/mediawiki/2014hs/9/92/Project.png';
}
}
  }
  }

Revision as of 03:31, 18 April 2014


StuyGem NYC





Get in touch!

Visit Our Twitter Page!