Skip to content

Commit

Permalink
comment out debug circles
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Dec 11, 2024
1 parent b3b60d2 commit 9df284c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/shimmers/sketches/circuit_diagrams.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@
(vary-meta (gc/circle center 6.0)
assoc :stroke-width 2.0)])
(when (seq out)
(into [(let [margin (* eq/TAU 0.75 (/ 1.0 (inc (count faces))))
t0 (- (g/heading (tm/- (face-center (first out)) center)) margin)
t1 (+ (g/heading (tm/- (face-center (last out)) center)) margin)]
(vary-meta (arc/arc center radius t0 t1)
assoc :stroke-width 2.0
:fill "none"))
(gc/circle (tm/mix center (face-center (first out)) 0.33) 4.0)
(gc/circle (tm/mix center (face-center (last out)) 0.66) 4.0)]
(for [face out]
(connector face (v/+polar center radius (g/heading (tm/- (face-center face) center))))))))))
(concat [(let [margin (* eq/TAU 0.75 (/ 1.0 (inc (count faces))))
t0 (- (g/heading (tm/- (face-center (first out)) center)) margin)
t1 (+ (g/heading (tm/- (face-center (last out)) center)) margin)]
(vary-meta (arc/arc center radius t0 t1)
assoc :stroke-width 2.0
:fill "none"))]
#_[(gc/circle (tm/mix center (face-center (first out)) 0.33) 4.0)
(gc/circle (tm/mix center (face-center (last out)) 0.66) 4.0)]
(for [face out]
(connector face (v/+polar center radius (g/heading (tm/- (face-center face) center))))))))))
(mapcat draw-face faces)))

(defn make-component [shape]
Expand Down

0 comments on commit 9df284c

Please sign in to comment.