Skip to content

Commit

Permalink
move the mod 1.0 into the color expression
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Aug 14, 2023
1 parent d924a63 commit 9ed3f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shimmers/sketches/spiral_distance.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
(let [polygon (gp/polygon2 [pa qa qb pb])
center (g/centroid polygon)
mag (tm/mag center)
c (mod (+ offset (* 0.001 mag tm/PHI)) 1.0)]
(q/fill c 0.6 (/ 1.1 tm/PHI) 1.0)
c (+ offset (* 0.001 mag tm/PHI))]
(q/fill (mod c 1.0) 0.6 (/ 1.1 tm/PHI) 1.0)
(cq/draw-curve-shape (g/vertices polygon))))))))

(defn page []
Expand Down

0 comments on commit 9ed3f1e

Please sign in to comment.