]> git.r.bdr.sh - rbdr/r.bdr.sh/commitdiff
Clear unnecessary p expansion
authorRuben Beltran del Rio <redacted>
Sat, 17 Feb 2024 00:14:01 +0000 (01:14 +0100)
committerRuben Beltran del Rio <redacted>
Sat, 17 Feb 2024 00:14:01 +0000 (01:14 +0100)
js/animation.js

index 71d5aa33843608bf192e5cf21693ec2a9ab12ce8..ecf5e4352c34020b08da6af5824453ad69307d49 100644 (file)
   }
 
   function sqr(i) {
-    var {x, y} = pos(i)
-    X.fillRect(x, y, z, z)
+    var p = pos(i)
+    X.fillRect(p.x, p.y, z, z)
   }
 
   function crc(i) {
-    var {x, y} = pos(i)
+    var p = pos(i)
     B()
-    X.arc(x, y, z / 2, 0, 2 * PI)
+    X.arc(p.x, p.y, z / 2, 0, 2 * PI)
     F()
   }