Skip to content

Commit

Permalink
slow down the tangent term
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Nov 21, 2024
1 parent 95cb14c commit 4f71458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shimmers/sketches/envelope_collapse.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
(q/color 0.0)
(q/stroke-weight 1.0)
(q/no-fill)
(let [tan-term (+ (* 0.007 t)
(* 2.1 (math/sin (+ (* eq/TAU 0.003 t) 0.75))))
(let [tan-term (+ (* 0.004 t)
(* 1.37 (tsin 0.003 t 0.5)))
offset (* 0.15 (tm/clamp (math/tan (* eq/TAU tan-term)) -100 100))]
(doseq [v (range -2 3 1)]
(plot (graph (+ t (* v offset)))
Expand Down

0 comments on commit 4f71458

Please sign in to comment.