From: Ruben Beltran del Rio Date: Sat, 17 Feb 2024 00:14:01 +0000 (+0100) Subject: Clear unnecessary p expansion X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/commitdiff_plain/23398f9ac73be679f9487a10ce4e81562fb45102?ds=inline Clear unnecessary p expansion --- diff --git a/js/animation.js b/js/animation.js index 71d5aa3..ecf5e43 100644 --- a/js/animation.js +++ b/js/animation.js @@ -22,14 +22,14 @@ } 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() }