We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326fb25 commit e04127dCopy full SHA for e04127d
src/civitas/why/village/scene.clj
@@ -411,14 +411,15 @@
411
(let [authors (->> (:author @db/db)
412
(sort-by :name))
413
n (count authors)
414
+ colors (cycle (take 11 color/palette))
415
r 6]
416
[:g
417
[:g {:transform "translate(0,-8)"}
418
(mu/mo (str n " authors"))]
419
[:g {:transform "scale(0.8)"}
- (for [[{:keys [image]} [x y]] (map vector authors (geom/spiral 100))]
420
+ (for [[{:keys [image]} [x y] color] (map vector authors (geom/spiral 100) colors)]
421
[:g {:transform (str "translate(" (* r x) "," (* r y) ")")}
- (svg/polygon {:fill (:dgreen col)
422
+ (svg/polygon {:fill color
423
:stroke (:dblue col)
424
:stroke-width 1}
425
(geom/hex r))
0 commit comments