Skip to content

Commit

Permalink
use a cube wobble for spiral-rot
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jan 19, 2024
1 parent b8af708 commit e914d21
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 @@ -45,8 +45,10 @@
rotation (cube-wobble [(/ eq/TAU 3) (/ 1 37) 1.7]
[(/ tm/PHI 3) (/ 1 17) 0.3]
t)
spiral-rot (* (duty-cycle [1.0 (/ 1 9) 0.1] [2.1 (/ 4 7) 2.1] t)
(Math/sin (+ (/ t 23) 0.1 (Math/cos (+ 0.5 (* 0.37 t))))))
spiral-rot (* (duty-cycle [1.0 (/ 1 9) 0.1] [2.1 (/ 3 7) 2.1] t)
(cube-wobble [1.0 (/ 1 23) 0.1]
[0.5 (/ 4 11) 0.7]
t))
duty-scale (duty-cycle [1.0 0.17 0.7] [tm/PHI 0.29 2.7] t)]
(q/with-translation (cq/rel-vec 0.5 0.5)
(q/with-rotation [rotation]
Expand Down

0 comments on commit e914d21

Please sign in to comment.