pull/1/head
Benjamin Bädorf 3 years ago
parent 81bafdf09a
commit 259dd18f41
  1. 2
      src/index.html
  2. 4
      src/index.js
  3. 1
      webpack.config.js

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.js"></script>
<title>Untitled</title>
</head>
<body>
</body>

@ -5,6 +5,8 @@ import HorizontalLinesAnimation from './horizontal-lines.js';
import SquaresAnimation from './squares.js';
import CirclesAnimation from './circles.js';
const ANIMATION_TIME = 10 * 60 * 1000;
async function main() {
const audioCtx = new AudioContext();
const microphone = await navigator.mediaDevices.getUserMedia({ audio: true });
@ -51,7 +53,7 @@ async function main() {
}
activate(animations[animationNum]);
}, 10000);
}, ANIMATION_TIME);
};
sketch.draw = () => {

@ -47,6 +47,7 @@ module.exports = {
devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: true,
host: '0.0.0.0',
port: 8080,
hot: true,
}

Loading…
Cancel
Save