Skip to content

Commit

Permalink
add some modulation to the saturation
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jan 27, 2024
1 parent dd229e6 commit 8b10e85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shimmers/sketches/phase_shifting.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
(* (cq/rel-h 0.1) (Math/sin (* fpy t))))]
(q/fill (eq/unit-sin (+ (* (/ 1 45) t)
(* (/ 1 30) (Math/sin (* (/ 1 11) (/ (+ head t) tm/PHI))))))
0.5 0.5 (+ 0.05 (* (- 1.0 opacity) 0.05)))
(+ 0.55 (* 0.15 (Math/sin (+ (* (/ 1 11) t)
(Math/sin (* spin-amp (/ 1 7) t))))))
0.5 0.05)
(-> polygon
g/center
(g/scale (+ 0.25 (* 0.75 (eq/unit-sin (+ (* 0.5 head head-amp) (* (/ 1 3) t))))))
Expand Down

0 comments on commit 8b10e85

Please sign in to comment.