This is the #Clojure code that generated this sample diagram:
(->> (repeatedly 90 #(* (rand-int 6) (/ tau 6)))
(reductions #(+ (vga2d/rotate (e 1) %2) %1) zero)
(partition 2 1))
Clojure's standard library is quite good, and a little sprinkle of geometric algebra makes working with vectors a very pleasant and matrix-free experience. 🙂
@jack hope I’ve got this right.
svg {
viewBox: -100 -100 200 200;
path {
fill: none;
stroke: black;
stroke-linejoin: round;
d: m 50 -50 @M90.p.Plot(
points: 2;
r: 10;
rotate: $(@ri5 * 60)
)
}
}
@plexus It’s a very cool thing that @yuanchuan made :)