Skip to content

Commit

Permalink
vary the smoothness of each glyph for more variations
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jul 14, 2023
1 parent db65a06 commit 8779886
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/shimmers/sketches/glyphs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
(def height 600)

(defn smooth-line [points]
(->> points
(gsd/subdivide-closed (:chaikin gsd/schemes))
(gsd/subdivide-closed (:chaikin gsd/schemes))
cs/midsection
(cs/sandwich points)))
(as-> points _
(iterate (partial gsd/subdivide-closed (:chaikin gsd/schemes)) _)
(nth _ (dr/weighted {0 1 1 2 2 4 3 1}))
(cs/midsection _)
(cs/sandwich points _)))

(defn glyph []
(let [shapes (dr/weighted {0 6
Expand Down

0 comments on commit 8779886

Please sign in to comment.