Skip to content

Commit

Permalink
tweak rates again and max subdivide
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Feb 5, 2024
1 parent 1afd9ad commit 9dfa433
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shimmers/sketches/display_tree.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
(cond (seq children)
(let [i (dr/random-int (count children))]
(update-in node [:children i] subdiv (inc depth)))
(< depth 8)
(< depth 6)
(assoc node :children (mapv create-node (split display)))
:else node))

Expand Down Expand Up @@ -210,8 +210,8 @@
(let [i (dr/random-int (count displays))]
(update displays i
(fn [s]
(case (dr/weighted {:divide 64
:add-symbol 64
(case (dr/weighted {:divide 32
:add-symbol 32
:combine 8
:collapse 2
:nothing 4096})
Expand Down

0 comments on commit 9dfa433

Please sign in to comment.