Zhen Ye commited on
Commit
ae714ec
·
1 Parent(s): 87e151b

ui: Remove scanning effect from overlay

Browse files
Files changed (1) hide show
  1. frontend/js/ui/overlays.js +0 -6
frontend/js/ui/overlays.js CHANGED
@@ -25,12 +25,6 @@ APP.ui.overlays.render = function (canvasId, trackSource) {
25
  const source = trackSource || state.detections || [];
26
  if (!source || !source.length) return;
27
 
28
- // subtle scanning effect
29
- const t = now() / 1000;
30
- const scanX = (Math.sin(t * 0.65) * 0.5 + 0.5) * w;
31
- ctx.fillStyle = "rgba(34,211,238,.06)";
32
- ctx.fillRect(scanX - 8, 0, 16, h);
33
-
34
  // Helpers
35
  function roundRect(ctx, x, y, w, h, r, fill, stroke) {
36
  if (w < 2 * r) r = w / 2;
 
25
  const source = trackSource || state.detections || [];
26
  if (!source || !source.length) return;
27
 
 
 
 
 
 
 
28
  // Helpers
29
  function roundRect(ctx, x, y, w, h, r, fill, stroke) {
30
  if (w < 2 * r) r = w / 2;