You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- The header. Information here doesn't make up elements of the webpage. We'll define all the javascript stuff at the end, so we just put the title here. -->
<head>
<title>My Processing Program</title> <!-- Title to be displayed in browser -->
</head>
<!-- The body of the webpage, where all visible stuff lies. -->
<body>
<canvas id="mycanvas"></canvas>
</body>
<!-- run all the javascript stuff -->
<script src="processing.js"></script> <!-- Include the processing.js commands -->
<script src="asteroids4.js"></script> <!-- The actual source code for your program -->
<script type="application/javascript">
var canvas = document.getElementById("mycanvas"); //get the canvas that processingjs will use
var processingInstance = new Processing(canvas, sketchProc); //pass the function sketchProc (defined in myCode.js) to Processing's constructor.