From db94f62e45a821d87e5af5db6ac682842d24fd04 Mon Sep 17 00:00:00 2001 From: Charles Comstock Date: Sat, 30 Nov 2024 15:45:40 -0600 Subject: [PATCH] remove redundant multiplication and simplify width calc --- src/shimmers/sketches/wavetracker.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shimmers/sketches/wavetracker.cljs b/src/shimmers/sketches/wavetracker.cljs index 60bd8b451..50417c527 100644 --- a/src/shimmers/sketches/wavetracker.cljs +++ b/src/shimmers/sketches/wavetracker.cljs @@ -33,7 +33,7 @@ max-jitter (* 2 max-scale) x-slide (let [s (math/cos (+ 0.25 (* 0.12 t)))] (* 3 (tm/sign s) (tm/smoothstep* 0.35 0.75 (abs s)))) - width (+ (* 0.6 (eq/unit-sin (* 0.1 (* 0.6 t)))) + width (+ (* 0.6 (eq/unit-sin (+ 0.1 (* 0.1 t)))) (* 0.3 (eq/unit-sin (+ 0.2 (* 1.1 t)))) (* 0.1 (eq/unit-sin (+ 0.3 (* 1.4 t))))) wobble (tm/smoothstep* 0.65 0.95 (eq/unit-sin (+ (/ 1 7) (* (/ 1 6) t))))