Ayy
This commit is contained in:
parent
81bafdf09a
commit
259dd18f41
|
@ -1,7 +1,7 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.js"></script>
|
<title>Untitled</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -5,6 +5,8 @@ import HorizontalLinesAnimation from './horizontal-lines.js';
|
||||||
import SquaresAnimation from './squares.js';
|
import SquaresAnimation from './squares.js';
|
||||||
import CirclesAnimation from './circles.js';
|
import CirclesAnimation from './circles.js';
|
||||||
|
|
||||||
|
const ANIMATION_TIME = 10 * 60 * 1000;
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const audioCtx = new AudioContext();
|
const audioCtx = new AudioContext();
|
||||||
const microphone = await navigator.mediaDevices.getUserMedia({ audio: true });
|
const microphone = await navigator.mediaDevices.getUserMedia({ audio: true });
|
||||||
|
@ -51,7 +53,7 @@ async function main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
activate(animations[animationNum]);
|
activate(animations[animationNum]);
|
||||||
}, 10000);
|
}, ANIMATION_TIME);
|
||||||
};
|
};
|
||||||
|
|
||||||
sketch.draw = () => {
|
sketch.draw = () => {
|
||||||
|
|
|
@ -47,6 +47,7 @@ module.exports = {
|
||||||
devServer: {
|
devServer: {
|
||||||
contentBase: path.join(__dirname, 'dist'),
|
contentBase: path.join(__dirname, 'dist'),
|
||||||
compress: true,
|
compress: true,
|
||||||
|
host: '0.0.0.0',
|
||||||
port: 8080,
|
port: 8080,
|
||||||
hot: true,
|
hot: true,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue