use 0 to 1 as coordinates, not working properly
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user