pixelass's picture
feat: initial prototype
a86df80 unverified
raw
history blame
272 Bytes
const canvas = document.querySelector("#canvas");
function handleResize() {
requestAnimationFrame(() => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
}
handleResize();
window.addEventListener("resize", handleResize, { passive: true });