diff --git a/package.json b/package.json index 9338e9b2a..77257aed0 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ ], "dependencies": { "@tensorflow-models/facemesh": "0.0.3", - "@tensorflow/tfjs": "2.0.1", + "@tensorflow/tfjs": "2.7.0", "localforage": "1.7.3", "numeric": "1.2.6", "regression": "2.0.1" diff --git a/src/index.mjs b/src/index.mjs index 37c11163d..b83aa30f4 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -328,6 +328,7 @@ async function loop() { if (webgazer.params.showGazeDot) { gazeDot.style.display = 'block'; } + gazeDot.style.transition = 'all 0.1s ease-in-out'; gazeDot.style.transform = 'translate3d(' + pred.x + 'px,' + pred.y + 'px,0)'; } else { gazeDot.style.display = 'none'; diff --git a/www/colors.html b/www/colors.html new file mode 100644 index 000000000..23230dab9 --- /dev/null +++ b/www/colors.html @@ -0,0 +1,285 @@ + + + + +
+ +