Team:RHIT/Modeling2.html
From 2013.igem.org
(Difference between revisions)
Line 12: | Line 12: | ||
</body> | </body> | ||
<script src="http://fablabo.net/mediawiki/extensions/processingjs/processing-1.3.6.min.js"</script> | <script src="http://fablabo.net/mediawiki/extensions/processingjs/processing-1.3.6.min.js"</script> | ||
- | + | var sketchProc=function(processingInstance){ with (processingInstance){ | |
- | + | size(600, 1050); | |
- | size(600, 1050); | + | |
frameRate(20); | frameRate(20); | ||
+ | background(10, 100, 150); | ||
var draw = function(){ | var draw = function(){ | ||
background(248, 0, 253); | background(248, 0, 253); | ||
- | + | }; | |
- | + | } | |
}; | }; | ||
- | + | </script> | |
- | + | ||
- | + | ||
- | </script | + | |
<script type="application/javascript"> | <script type="application/javascript"> | ||
var canvas = document.getElementById("mycanvas"); //get the canvas that processingjs will use | var canvas = document.getElementById("mycanvas"); //get the canvas that processingjs will use |