Skip to content

Commit

Permalink
adjust the rotation rate both for sketch and spiral
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jan 17, 2024
1 parent 0ee8bc6 commit 0685f72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/shimmers/sketches/hexpansion.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
(let [divs 12
r (+ (/ (* 0.4 (q/height)) (* 2 divs)) (* (/ 3 divs) (Math/sin (* 0.75 t))))
mmag (tm/mag (cq/rel-vec 0.5 0.5))
rotation (* (/ eq/TAU 6) (Math/cos (+ (/ t 29) 0.5 (* tm/PHI (eq/cube (Math/sin (* 0.33 t)))))))
spiral-rot (* 0.66 Math/PI
rotation (* (/ eq/TAU 3)
(Math/cos (+ 1.7 (/ t 37)
(* 0.33 tm/PHI (eq/cube (Math/sin (+ 0.3 (/ t 17))))))))
spiral-rot (* Math/PI
(duty-cycle [0.07 0.1] [2.1 0.57 2.1] t)
(Math/sin (+ (/ t 23) 0.1 (Math/cos (+ 0.5 (* 0.37 t))))))
duty-scale (duty-cycle [0.13 0.7] [tm/PHI 0.31 2.7] t)]
Expand Down

0 comments on commit 0685f72

Please sign in to comment.