Skip to content

Commit

Permalink
add a little more perturbation on the begin and end of each strand
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Jul 30, 2023
1 parent f3409e0 commit b2b4972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shimmers/sketches/slither.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
(doseq [v (tm/norm-range 23)]
(q/begin-shape)
(apply q/curve-vertex (v/polar (cq/rel-h 0.01) (* eq/TAU v)))
(apply q/curve-vertex (v/polar (cq/rel-h 0.05) (* eq/TAU v)))
(apply q/curve-vertex (v/polar (cq/rel-h (+ 0.25 (* 0.15 (Math/cos t))))
(apply q/curve-vertex (v/polar (cq/rel-h 0.05) (* eq/TAU (+ v (* 0.075 (Math/sin (* 0.33 t)))))))
(apply q/curve-vertex (v/polar (cq/rel-h (+ 0.25 (* 0.125 (Math/cos t))))
(* eq/TAU (+ v (* 0.1 (Math/sin (* 1.5 t)))))))
(apply q/curve-vertex (v/polar (cq/rel-h 0.45) (* eq/TAU v)))
(apply q/curve-vertex (v/polar (cq/rel-h 0.45) (* eq/TAU (+ v (* 0.075 (Math/sin (* 0.25 t)))))))
(apply q/curve-vertex (v/polar (cq/rel-h 0.49) (* eq/TAU v)))
(q/end-shape)))

Expand Down

0 comments on commit b2b4972

Please sign in to comment.