Files
  • index.html
  • libraries
  • sketch.js
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>p5.js example</title>
    <style> body {padding: 0; margin: 0;} </style>
    <script src="libraries/p5.min.js"></script>
    <!--<script src="libraries/addons/p5.dom.min.js"></script>-->
    <!--<script src="libraries/addons/p5.sound.min.js"></script>-->
    <script src="sketch.js"></script>
  </head>
  <body>
  </body>
</html>
result
console