Welcome
pattapatta
pattapatta is a TypeScript geometry library for pen plotters: hatching, circle packing, triangulation and meshing, boolean path ops, Voronoi, tilings, and SVG I/O — for Node and the browser.
Inspired by Processing Geometry Suite (PGS), implemented clean-room under MIT (not a line port).
What you get
- Stroke-first geometry (
fill="none"SVG by default) - ESM + TypeScript types
- Feature imports (
pattapatta/hatch,pattapatta/circlePacking, …) - CLI for SVG round-trips
Jump in
| Page | Purpose |
|---|---|
| Quickstart | Install and draw something in 2 minutes |
| Getting started | Mental model, imports, a full mini pipeline |
| Examples | Chained recipes: union → hatch, frame → pack, … |
| Live demos | Interactive packing, triangulation, meshing, hatch, and pipelines |
| Operations | Transforms and region ops (e.g. rotate, boolean) |
| Fills | Stroke marks (hatch, packing, tiling, …) |
Design notes
Internal research and ADRs live in the repo under docs/ (separate from this docs app).