Skip to content

Commit

Permalink
more subdivisions and faster collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Feb 20, 2024
1 parent 0ce58c7 commit 2133733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shimmers/sketches/display_tree.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@
n (count tree)
animations (count (filter :animation tree))
display-f
(dr/weighted [[subdivide (* 64 (Math/exp (* -0.12 (+ n (dec ramp)))))]
(dr/weighted [[subdivide (* 64 (Math/exp (* -0.08 (+ n (dec ramp)))))]
[add-animation (* 32 (Math/exp (* -0.12 (+ animations (dec ramp)))))]
[combine (* 4 ramp)]
[combine (* 8 ramp)]
[collapse (* 2 ramp)]
[identity 4096]])]
(swap! defo assoc
Expand Down

0 comments on commit 2133733

Please sign in to comment.