Skip to content

Commit

Permalink
expand the ship count
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jan 7, 2024
1 parent f005432 commit 614efc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shimmers/sketches/graph_traces.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
now (now)]
{:graph graph
:t now
:ships (repeatedly 3 (fn [] (let [node (dr/rand-nth (keys (:nodes graph)))]
(new-ship graph node now))))}))
:ships (->> (fn [] (let [node (dr/rand-nth (keys (:nodes graph)))]
(new-ship graph node now)))
(repeatedly 7))}))

(defn contract-edge [{:keys [nodes] :as graph} {:keys [p q]} dt]
(let [p' (nodes p)
Expand Down

0 comments on commit 614efc2

Please sign in to comment.