Skip to content

Commit e978408

Browse files
committed
force integers in a few places kondo is throwing double warnings
1 parent f8cb628 commit e978408

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/shimmers/sketches/minimum_spanning_tree.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
(cq/circle (cq/rel-pos pt) 0.2))
4747
(q/stroke-weight 0.5)
4848
(q/stroke 50 50 230)
49-
(doseq [[i [p q]] (map-indexed vector (take (math/floor (inc step)) edges))
49+
(doseq [[i [p q]] (map-indexed vector (take (int (math/floor (inc step))) edges))
5050
:let [wp (cq/rel-vec p)
5151
wq (cq/rel-vec q)]]
5252
(if (< i (math/floor step))

src/shimmers/sketches/space_colonization.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
[{:keys [attractor-power snap-theta] :as settings}]
7373
(let [bounds (cq/screen-rect)
7474
attractors
75-
(repeatedly (math/pow 2 attractor-power)
75+
(repeatedly (int (math/pow 2 attractor-power))
7676
(attractor-gen bounds (rand-nth [:triangle :square :circle])))
7777
roots (dr/weighted {1 4
7878
2 2

0 commit comments

Comments
 (0)