Ayy
This commit is contained in:
parent
81bafdf09a
commit
259dd18f41
|
@ -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…
Reference in a new issue