Skip to content

Commit

Permalink
only show face connections if connected
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jan 9, 2025
1 parent 9df4b40 commit 4165e18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/shimmers/sketches/circuit_diagrams.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@
)))))

(defn draw-face [{:keys [connected] :as face}]
[(vary-meta (gc/circle (face-center face) 6)
assoc :fill (if connected "black" "white"))])
(if connected
[(vary-meta (gc/circle (face-center face) 6)
assoc :fill "black")]
[]))

(defn connector [face pt]
(gl/line2 (face-center face) pt))
Expand Down

0 comments on commit 4165e18

Please sign in to comment.