From d659764ab55a6a9206cbaf10491274630468d617 Mon Sep 17 00:00:00 2001 From: Charles Comstock Date: Sat, 20 Apr 2024 22:34:05 -0500 Subject: [PATCH] fix the time jitter --- src/shimmers/sketches/twelve_clocks.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shimmers/sketches/twelve_clocks.cljs b/src/shimmers/sketches/twelve_clocks.cljs index a35fbc35c..c4d3f2606 100644 --- a/src/shimmers/sketches/twelve_clocks.cljs +++ b/src/shimmers/sketches/twelve_clocks.cljs @@ -49,7 +49,8 @@ (doseq [hand (range 12) step (range 7) :let [hand-phase - (->> (eq/unit-sin (+ (* (+ 0.05 (* 0.1 (eq/unit-sin (+ (* 0.33 hand) (* tm/SQRT2 time))))) time) + (->> (eq/unit-sin (+ (* (+ 0.05 (* 0.1 (eq/unit-sin (+ (* 0.33 hand) (* tm/SQRT2 time))))) + (* eq/TAU (eq/unit-sin (/ time eq/TAU)))) (math/sin (/ time tm/SQRT3)))) (tm/smoothstep* 0.33 0.95) (* 0.15 hand))