Skip to content

Commit

Permalink
tweak stroke width and set an upper bound on edge lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Dec 20, 2024
1 parent cda53cb commit 0cc4a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shimmers/sketches/degree_of_connectivity.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
r (dr/random 4.0 16.0)
d (dr/random 0.2)]
(csvg/group {}
(into [] (repeatedly (int (* 24 (+ pw qw) (dr/random 0.2 0.8)))
(into [] (repeatedly (tm/clamp (int (* 24 (+ pw qw) (dr/random 0.2 0.8))) 0 64)
#(connection p q (* r pw) (* r qw) (* d pw) (* d qw))))))))))

(defn scene [{:keys [scene-id]}]
Expand All @@ -65,7 +65,7 @@
:height height
:stroke "black"
:fill "white"
:stroke-width 0.5}
:stroke-width 0.75}
(shapes (rect/rect 0 0 width height))))

(sketch/definition degree-of-connectivity
Expand Down

0 comments on commit 0cc4a9b

Please sign in to comment.