diff --git a/src/aphorisms/fourty_one.clj b/src/aphorisms/fourty_one.clj index 4dc910c..defac0e 100644 --- a/src/aphorisms/fourty_one.clj +++ b/src/aphorisms/fourty_one.clj @@ -30,8 +30,8 @@ (defn as-grid [rect cell-size] (let [n-x (int (/ (g/width rect) cell-size)) n-y (int (/ (g/height rect) cell-size)) - t (v/vec2 (* (mod (g/width rect) n-x) 0.5) - (* (mod (g/height rect) n-x) 0.5))] + t (v/vec2 (* (mod (g/width rect) (* cell-size n-x)) 0.5) + (* (mod (g/height rect) (* cell-size n-x)) 0.5))] (for [x (range n-x) y (range n-y)] (-> (r/rect (* x cell-size) (* y cell-size) cell-size)