Render visuzlizer background for screenshot (#1019)

This commit is contained in:
Jordan Eldredge 2020-09-29 21:43:21 -07:00 committed by GitHub
parent df500913c8
commit f74d13b556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,6 +91,7 @@ function Visualizer({ analyser }: Props) {
return;
}
if (dummyVizData) {
canvasCtx.drawImage(bgCanvas, 0, 0);
Object.entries(dummyVizData).forEach(([i, value]) => {
paintBar(canvasCtx, Number(i), value, -1);
});