pastebin

Paste Search Dynamic
Recent pastes
/index.html
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <title>Getting Started with ml5.js</title>
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <!-- p5 -->
  7.     <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js"></script>
  8.     <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
  9.     <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.sound.min.js"></script>
  10.     <!-- ml5 -->
  11.     <script src="https://unpkg.com/ml5@0.4.3/dist/ml5.min.js"></script>
  12.   </head>
  13.  
  14.   <body>
  15.     <script>
  16.       // Your code will go here
  17.       // open up your console - if everything loaded properly you should see 0.9.0
  18.       console.log('ml5 version:', ml5.version);
  19.  
  20.       function setup() {
  21.         createCanvas(400, 400);
  22.       }
  23.  
  24.       function draw() {
  25.         background(200);
  26.       }
  27.     </script>
  28.   </body>
  29. </html>
  30.  
Parsed in 0.000 seconds