From 61d40963b97a4ee027b5a836eddf6d8d3cb3fc33 Mon Sep 17 00:00:00 2001 From: Charles Comstock Date: Tue, 5 Mar 2024 17:59:06 -0600 Subject: [PATCH] ensure stroke-weight is controlled by same time parameter --- src/shimmers/sketches/display_tree.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shimmers/sketches/display_tree.cljs b/src/shimmers/sketches/display_tree.cljs index 5683a6a2f..03ebd45bd 100644 --- a/src/shimmers/sketches/display_tree.cljs +++ b/src/shimmers/sketches/display_tree.cljs @@ -327,10 +327,11 @@ osc1 osc2 draw) (fn [p rotation t f] (q/no-fill) - (q/stroke-weight (+ 0.75 (* 1.0 (Math/sin (+ (* (/ 1.0 major) t) (Math/sin (* t (/ 1.0 minor)))))))) (q/stroke (- 1.0 f)) (let [center (geometry/rotate-around (g/centroid bounds) p rotation) t (* direction t) + weight-wob (Math/sin (* t (/ 1.0 minor))) + weight (+ 0.75 (* 1.0 (Math/sin (+ (* (/ 1.0 major) t) weight-wob)))) path (for [s (tm/norm-range 192)] (-> (gv/vec2) @@ -338,6 +339,7 @@ (tm/+ (R minor ((:fe osc2) s s) 1.0 s)) (tm/* (* 0.15 radius)) (tm/+ center)))] + (q/stroke-weight weight) (draw path t)) (q/stroke-weight 1.0) (q/no-stroke))))