front page redesign: unused code to auto-resize anim when window resizes

redesign-v3-text-instructions
Ryan Barrett 2023-12-22 10:09:49 -08:00
rodzic 1438c4c3ac
commit 5f3c229804
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 14 dodań i 1 usunięć

Wyświetl plik

@ -163,4 +163,17 @@ let sketch = function(p) {
return (x % n + n) % n;
}
};
new p5(sketch, document.getElementById('topology'));
let myQ5Sketch = new p5(sketch, document.getElementById('topology'));
// tried setting this inside the sketch with p.windowResized = ...
// but that didn't work.
// https://github.com/processing/p5.js/wiki/Positioning-your-canvas#making-the-canvas-fill-the-window
// https://github.com/quinton-ashley/q5.js/pull/6
//
// also this restarts the animation, and occasionally it crashes. so, forget
// about this for now
// addEventListener("resize", (event) => {
// myQ5.resizeCanvas(document.documentElement.clientWidth, 900);
// });