Skip to content

Commit

Permalink
revert to tm/abs since it's operating on a vector
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Sep 3, 2023
1 parent 2b94747 commit 1cd4ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shimmers/sketches/motif_shapes.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@

(defn group-mirror [group direction]
(let [bounds (g/bounds group)
offset (abs (rect/bottom-left bounds))
offset-v (tm/abs (rect/bottom-left bounds))
;; ensure entire group is inside of upper-right quadrant before mirroring
g (g/translate group (tm/* offset 1.1))
g (g/translate group (tm/* offset-v 1.1))
dir (case direction
:x (mat/matrix32 -1.0 0 0 0 1 0)
:y (mat/matrix32 1 0 0 0 -1.0 0))]
Expand Down

0 comments on commit 1cd4ff8

Please sign in to comment.