Tweak: linear FFT graph

This commit is contained in:
Dejvino 2026-01-04 21:35:08 +00:00
parent f79215cc15
commit db682996f0

View File

@ -464,7 +464,7 @@ export class DebugPanel extends SceneFeature {
for(let i = 0; i < bufferLength; i++) {
const val = (data[i] / 255);
const barHeight = val * val * h;
const barHeight = val * h;
const hue = (i / bufferLength) * 260; // Red to Purple
ctx.fillStyle = `hsl(${hue}, 100%, 50%)`;
ctx.fillRect(x, h - barHeight, barWidth + 1, barHeight);