X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/672c9cfeface5336603ed84b3a913870ab53b2c8..f8bb6d8d81be5c1dfb24265dadbbfff575f7c913:/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() }