-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessing.html
More file actions
25 lines (19 loc) · 975 Bytes
/
processing.html
File metadata and controls
25 lines (19 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<!-- start of the document -->
<html>
<!-- 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.
</script>
</html>