-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
24 lines (20 loc) · 1.05 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<!-- load the p5 libraries we need. At first, we'll try from a CDN, but if for some reason that doesn't work, then we can load it from our local copy. For most sketches, all we'll need is the p5 and p5.dom libs -->
<!-- get p5.js from cdn -->
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.21/p5.min.js"></script>
<!-- uh oh. Can't find CDN?, then load from local. -->
<script>
window.p5 || document.write('<script src="../js/p5.js"><\/script>');
</script>
<!-- get p5.dom.js from cdn -->
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.21/addons/p5.dom.min.js"></script>
<!-- uh oh. Can't find CDN?, then load from local. -->
<script>
window.p5 || document.write('<script src="../js/addons/p5.dom.js"><\/script>');
</script>
<!-- let's get our sketch! -->
<script language="javascript" src="sketch.js"></script>
<!-- this line removes any default padding and style. you might only need one of these values set. -->
<style> body {padding: 0; margin: 0;} </style>
</html>