The Donald Trump: New top story on Hacker News: Show HN: Reconstruct any image using primitive shapes, runs in-browser via WASM

Friday, 6 March 2026

New top story on Hacker News: Show HN: Reconstruct any image using primitive shapes, runs in-browser via WASM

Show HN: Reconstruct any image using primitive shapes, runs in-browser via WASM
9 by taiseiue | 1 comments on Hacker News.
I built a browser-based port of fogleman/primitive — a Go CLI tool that approximates images using primitive shapes (triangles, ellipses, beziers, etc.) via a hill-climbing algorithm. The original tool requires building from source and running from the terminal, which isn't exactly accessible. I compiled the core logic to WebAssembly so anyone can drop an image and watch it get reconstructed shape by shape, entirely client-side with no server involved. Demo: https://ift.tt/CujYmMK Source: https://ift.tt/VtglO7b Curious if anyone has ideas for shapes or features worth adding.

No comments:

Post a Comment