Team:UFMG Brazil
From 2013.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
- | < | + | |
- | + | <div id="instructions" style="font-weight: normal; font-size: small; padding: 5px;"> | |
- | </ | + | </div> |
- | <html> | + | <br> |
+ | <img href="https://static.igem.org/mediawiki/2013/archive/7/7a/20130624002553%21UFMG_Brazil_logo.png"></img> | ||
+ | <div id="intro_content"> | ||
+ | <iframe style="border:none; width:100%; height:600px" src="https://docs.google.com/document/d/1iNhZ1MRXs6G2_LIIpJZnqy0ICRJUgxKBeBgoam_lvVU/pub?embedded=true"></iframe> | ||
+ | </div> | ||
+ | <canvas id="main_canvas" width="0" height="0"> | ||
+ | </div> | ||
+ | <script type="text/javascript"> | ||
+ | |||
+ | window.requestAnimFrame = (function(callback) { | ||
+ | return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || | ||
+ | function(callback) { | ||
+ | window.setTimeout(callback, 1000 / 60); | ||
+ | }; | ||
+ | })(); | ||
+ | |||
+ | w = 10; | ||
+ | |||
+ | var canvas = document.getElementById("main_canvas"); | ||
+ | var context = canvas.getContext('2d'); | ||
+ | |||
+ | function animate() { | ||
+ | // update | ||
+ | |||
+ | // clear | ||
+ | context.clearRect(0, 0, canvas.width, canvas.height); | ||
+ | |||
+ | // draw stuff | ||
+ | context.fillRect(25,25, w,100); | ||
+ | w = (w+1)%100; | ||
+ | |||
+ | // request new frame | ||
+ | requestAnimFrame(function() | ||
+ | { | ||
+ | animate(); | ||
+ | }); | ||
+ | } | ||
+ | animate(); | ||
+ | |||
+ | </script> | ||
+ | </html> | ||
+ | |||
+ | <!--- The Mission, Experiments ---> | ||
{| style="color:#1b2c8a;background-color:#0c6;" cellpadding="3" cellspacing="1" border="1" bordercolor="#fff" width="100%" align="center" | {| style="color:#1b2c8a;background-color:#0c6;" cellpadding="3" cellspacing="1" border="1" bordercolor="#fff" width="100%" align="center" |
Revision as of 20:36, 16 July 2013
Home | Team | Official Team Profile | Project | Parts Submitted to the Registry | Modeling | Notebook | Safety | Attributions |
---|