Tweak: linear FFT graph
This commit is contained in:
parent
f79215cc15
commit
db682996f0
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user