# Reconstruct any image using primitive shapes, runs in-brows…

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 com…

- **Page:** https://magpie.gallery/i/reconstruct-any-image-using-primitive-shapes-runs-c2b6
- **Type:** Link to an idea elsewhere
- **Category:** Creative & design
- **Runs on:** web
- **Tags:** image, shapes, wasm, generative, art

## Source

Web · taiseiue: Reconstruct any image using primitive shapes, runs in-browser via WASM

- **Original:** https://news.ycombinator.com/item?id=47232339

> 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://primitive-playground.taiseiue.jp/ Source: https://github.com/taiseiue/primitive-playground Curious if anyone has ideas for shapes or features worth adding. https://github.com/taiseiue/primitive-playground

## GitHub projects

- https://github.com/taiseiue/primitive-playground

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
