use 0 to 1 as coordinates, not working properly

This commit is contained in:
2025-01-09 20:06:37 +01:00
parent 0e5dd00816
commit 66c7ed2f23
3 changed files with 35 additions and 17 deletions

View File

@@ -23,6 +23,10 @@
ws = new WebSocket("/ws");
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
for (const tracker of data) {
tracker.x *= width
tracker.y *= height
}
trackers = data;
};