This commit is contained in:
Benjamin Bädorf 2019-06-14 23:57:48 +02:00
parent 81bafdf09a
commit 259dd18f41
3 changed files with 5 additions and 2 deletions

View file

@ -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>

View file

@ -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 = () => {

View file

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