add basic spectrum function

This commit is contained in:
Felix Roos 2024-11-09 20:57:09 +01:00
parent ae335ac40c
commit 648fbf99fa
4 changed files with 61 additions and 2 deletions

View file

@ -26,7 +26,7 @@ export const getDrawContext = (id = 'test-canvas', options) => {
}, 200);
});
}
return canvas.getContext(contextType);
return canvas.getContext(contextType, { willReadFrequently: true });
};
let animationFrames = {};