File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 12
12
13
13
; Drawing configuration
14
14
(def avatar-size 32 ) ; used for both x and y dimensions of avatars
15
- (def edge-widths [0 1 2 3 4 ]) ; More mentions == thicker edges
16
15
(def anneal-skipping 10 )
17
16
(def cooling 1000 )
18
17
; fail whale
25
24
; BAD HACK: don't change globals like this -- find a better way:
26
25
; (set! anim/TIMEOUT 500)
27
26
28
- (def edge-strokes
29
- (vec (map #(graphics/Stroke. % " #009" ) edge-widths)))
30
-
31
- (def max-stroke (peek edge-strokes))
27
+ (def edge-stroke (graphics/Stroke. 1 " #009" ))
32
28
33
29
(def g
34
30
(doto (graphics/createGraphics " 100%" " 100%" )
57
53
y2 (unit-to-pixel uy2 (.height canvas-size))]
58
54
(.drawPath g
59
55
(-> (. g (createPath )) (.moveTo x1 y1) (.lineTo x2 y2))
60
- ( get edge-strokes mention-count max- stroke) nil ))))
56
+ edge-stroke nil ))))
61
57
62
58
; Draw avatar nodes
63
59
(doseq [[username {:keys [x y] :as foo}] locs]
You can’t perform that action at this time.
0 commit comments