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;hp=672c9cfeface5336603ed84b3a913870ab53b2c8 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() }