Torna ai risultati

Includere una libreria p5.js o JavaScript

  (agg. )

Strutturazione dei file

  • CARTELLA-SKETCH
    • assets
    • libs
      • p5.min.js
      • p5.sound.min.js
      • NOME-LIBRERIA.js
    • index.html
    • sketch.js

index.html

// marks=9:8-9:53 placeholders=9:26-9:39
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Titolo dello sketch</title>
        <style> body {padding: 0; margin: 0;} </style>
        <script src="libs/p5.min.js"></script>
        <script src="libs/p5.sound.min.js"></script>
        <script src="libs/NOME-LIBRERIA.js"></script>
        <script src="sketch.js"></script>
    </head>
    <body>
    </body>
</html>