This commit is contained in:
zyqunix 2025-06-12 11:25:00 +02:00
parent eb2229631a
commit b5d4387c95
3 changed files with 9 additions and 10 deletions

View file

@ -35,11 +35,11 @@ function draw() {
analyser.getByteTimeDomainData(dataArray);
ctx.fillStyle = '#fff';
ctx.fillStyle = '#313244';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.lineWidth = 2;
ctx.strokeStyle = '#000';
ctx.strokeStyle = '#fff';
ctx.beginPath();
const sliceWidth = canvas.width / dataArray.length;