Skip to content

Commit

Permalink
stop reporting state at transition
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Oct 20, 2024
1 parent d287cc6 commit 10a5616
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/shimmers/sketches/loop_control.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@
(let [t (/ (q/millis) 1000.0)
state' (assoc state :t t)]
(if (> t (+ t0 transition))
(let [state''
(assoc state'
:t0 t
:transition (dr/random 16.0 32.0)
:rate-fn (random-equation)
:rate-fn' rate-fn)]
(println state'')
state'')
(assoc state'
:t0 t
:transition (dr/random 30.0 60.0)
:rate-fn (random-equation)
:rate-fn' rate-fn)
state')))

(defn draw [{:keys [circles rate-fn rate-fn' transition t0 t]}]
Expand Down

0 comments on commit 10a5616

Please sign in to comment.