Skip to content

Commit

Permalink
tweak the ramp to go higher but only for 8% of the time
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Feb 7, 2024
1 parent 2292997 commit 9d99fa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shimmers/sketches/display_tree.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@

(defn update-displays [displays t]
(let [i (dr/random-int (count displays))
ramp (Math/pow 2 (* 4 (tm/smoothstep* 0.8 1.0 (mod (/ t 50.0) 1.0))))]
(println ramp)
ramp (Math/pow 2 (* 6 (tm/smoothstep* 0.92 1.0 (mod (/ t 50.0) 1.0))))]
(update displays i
(fn [s]
(case (dr/weighted {:divide 32
Expand Down

0 comments on commit 9d99fa7

Please sign in to comment.