Browser-based compass-and-straightedge construction tool for drawing geometric constructions with infinite lines, full circles, inked boundaries, and flood-filled regions.
Live app: https://emh.io/cag
- Draw infinite construction lines and full circles.
- Snap to intersections and nearby geometry for precise placement.
- Ink segments/arcs between intersections to define boundaries.
- Fill enclosed regions with color.
- Pan, zoom, undo/redo, and delete geometry with dependency cleanup.
- Copy and paste a geometric measure distance.
1Compass2Straightedge3Ink4Fill5Copy Measure6Paste Measure7SelectZUndoYRedoXClear all0Reset viewSpace+ drag to pan (or middle-mouse drag)- Mouse wheel to zoom
This project is plain HTML/CSS/JS and runs directly in the browser.
- Clone the repo.
- Open
index.htmlin a browser, or serve the folder with any static file server.
Example:
python3 -m http.server 8080Then open http://localhost:8080.
- JavaScript
- Preact + Signals
- Full-screen HTML canvas
MIT. See LICENSE.
