{"by":"taiseiue","descendants":8,"id":47232339,"kids":[47282256,47281555,47284799,47283424,47283005],"score":43,"text":"I built a browser-based port of fogleman&#x2F;primitive — a Go CLI tool that approximates images using primitive shapes (triangles, ellipses, beziers, etc.) via a hill-climbing algorithm.\nThe original tool requires building from source and running from the terminal, which isn&#x27;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.<p>Demo: <a href=\"https:&#x2F;&#x2F;primitive-playground.taiseiue.jp&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;primitive-playground.taiseiue.jp&#x2F;</a>\nSource: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;taiseiue&#x2F;primitive-playground\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;taiseiue&#x2F;primitive-playground</a><p>Curious if anyone has ideas for shapes or features worth adding.","time":1772546111,"title":"Show HN: Reconstruct any image using primitive shapes, runs in-browser via WASM","type":"story","url":"https://github.com/taiseiue/primitive-playground"}