Introduction project for ENGLIT0512
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
692 B

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>James Fenn</title>
  6. <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.js" crossorigin="anonymous"></script>
  7. <script src="sketch.js"></script>
  8. <style>
  9. body {
  10. padding: 0;
  11. margin: 0;
  12. background-color: #c6c6c6;
  13. }
  14. canvas {
  15. position: absolute;
  16. top: 50%;
  17. left: 50%;
  18. transform: translate(-50%, -50%);
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div style="position: absolute; width: 100vw; height: 100vh; background: radial-gradient(ellipse at top, #cecece, #a9a9a9);"></div>
  24. <div style="position: absolute; width: 100vw; height: 100vh; z-index: 100; pointer-events: none;" id="elementContainer"></div>
  25. </body>
  26. </html>