Hacker News new | ask | show | jobs
by clusmore 1889 days ago
This looks cool. It reminds me a lot of Primitive Pictures[0], coincidentally also written in Go, which supports other shapes besides triangles as well.

[0]: https://github.com/fogleman/primitive

4 comments

Thanks! One main difference from Primitive is that Primitive's shapes can overlap, while Triangula generates a triangulation.
IMO both are cool but your method is way cooler!
Also check out my web app Boxy SVG [1] which integrates both vectorization algorithms as "Triangulate" and "Primitivize" generators [2].

[1] https://boxy-svg.com/app

[2] https://boxy-svg.com/blog/9

See also: SQIP, which uses Primitive: https://github.com/axe312ger/sqip
I'm not familiar with Go, but is there anything in the language which makes it a particularly good fit for this type of problem?
Not particularly, but Go is fast, compiles to small binaries, and supports multithreading with coroutines which works well for genetic algorithms.