Skip to content

Commit

Permalink
reminder about oscillating derivitive distance
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Nov 27, 2024
1 parent 554465e commit 3bab127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shimmers/sketches/cilia_phase.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
length-fx cilia-amp rot-fx phase]}]
(for [x samples]
(let [pt (screen-space (:fn line-fx) x phase)
;; what happens if the lookahead distance for the derivitive is oscillating?
pt' (screen-space (:fn line-fx) (+ x 0.0001) phase)
angle (+ (g/heading (tm/- pt' pt)) (* eq/TAU 0.25) ((:fn rot-fx) x))
len (* height (+ cilia-amp (* cilia-amp ((:fn length-fx) x))))]
Expand Down

0 comments on commit 3bab127

Please sign in to comment.