-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathp5sketch.html
More file actions
39 lines (32 loc) · 1.19 KB
/
p5sketch.html
File metadata and controls
39 lines (32 loc) · 1.19 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>my COMP1720 sketch</title>
<style>
body {
padding: 0;
margin: 0;
overflow: hidden;
}
</style>
<!-- this is the main p5 library -->
<script src="https://cdn.jsdelivr.net/npm/p5@1.4.1/lib/p5.js"></script>
<!-- this is the p5 sound library -->
<!-- <script src="https://cdn.jsdelivr.net/npm/p5@1.4.1/lib/addons/p5.sound.js"></script> -->
<!--
Note: if you have no access to the internet, the cdnjs.cloudflare.com links
above (and therefore your sketch) won't work.
If you want to be able to work offline, you will need to download the p5
libraries (e.g. from https://p5js.org/download/ and place them in a `lib`
folder in this project. Then, you can remove the <script> tags above and replace
them with the (currently commented-out) ones below:
<script src="lib/p5/p5.js"></script>
<script src="lib/p5/addons/p5.sound.js"></script>
-->
<!-- here's where we include the actual sketch file -->
<script src="sketch.js"></script>
</head>
<body></body>
</html>