X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/672c9cfeface5336603ed84b3a913870ab53b2c8..27c163f2b370f2c9b000c33bb68d61e55a204255:/js/animation.js?ds=sidebyside 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() }