added basic tracker. It takes way too much time.

This commit is contained in:
didier amyot committed 2024-01-24 07:16:33 -05:00
1 parent e6c609fb08
commit be436022a4
4 files changed
+21616 -11

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@
<h1>Hello, world!</h1>
<h3 id="first-ts"></h3>
<svg width="450" height="900" id="first" style="background-color: lightgray">
<svg width="900" height="450" id="first" style="background-color: lightgray">
</svg>
<br>
+1 -1
View File
@@ -70,7 +70,7 @@ function generatePoints(points, frames){
const lst = [];
for(const point of points.points){
if(frames.indexOf(point.frameIndex) !== -1){
lst.push(m("circle", {cx: point.x, cy: point.y, r: 3}));
lst.push(m("circle", {cx: point.y, cy: point.x, r: 3}));
}
}
return m("g", lst);