Difference between revisions of "Team:Munich/workspace/Moritz"

Line 64: Line 64:
 
</style>
 
</style>
  
 +
    <div id="background-container" style=" height: 500px; border-width: 2px; border: solid;">
 +
 +
<script type="text/javascript" src="https://2019.igem.org/Team:Munich/backgroundGraphics/p5JS?action=raw&amp;ctype=text/javascript"></script>
 +
 +
<script>
 +
    function setup() {
 +
      background(0);
 +
      stroke(255);
 +
      var parent = document.getElementById("background-container");
 +
      canvas = createCanvas(parent.clientWidth,parent.clientHeight);
 +
      canvas.parent("background-container");
 +
 +
    }
 +
 +
    function windowResized(){
 +
      resizeCanvas(windowWidth,windowHeight);
 +
    }
 +
 +
    function draw() {
 +
      if (mouseIsPressed){
 +
        line(pmouseX,pmouseY,mouseX,mouseY);
 +
      }
 +
    }
 +
    </script>
 +
    </div>
  
 
</html>
 
</html>
 
{{Munich/AliveFooterCSS}}
 
{{Munich/AliveFooterCSS}}

Revision as of 16:04, 7 September 2019

Alive