Cordata is a lightweight, responsive polygon area calculator built with pure HTML, CSS, and JavaScript. It lets users input polygon vertex coordinates to instantly calculate area, perimeter, and centroid, along with a real-time canvas preview.
๐ Live Demo: cordata.netlify.app
- ๐ Calculate Area using the Shoelace Formula
- ๐ Compute Perimeter and Centroid
- ๐ผ๏ธ Live graphical rendering of the polygon
- ๐ Toggle between Light & Dark Mode
- ๐งโโ๏ธ 100% Client-side โ no libraries, no tracking, no backend
cordata-web/
โ
โโโ index.html # Main web page
โโโ css/
โ โโโ style.css # Stylesheet
โโโ js/
โโโ script.js # Geometry logic + rendering
- Clone or download the repository.
- Open
index.htmlin any modern web browser. - Input polygon coordinates and see the results live.
This app is live at: ๐ https://cordata.netlify.app
You can also self-host using any static hosting platform like:
- GitHub Pages
- Netlify
- Vercel
MIT License โ free to use, modify, and share.
Built with โค๏ธ using vanilla HTML, CSS, and JS. Inspired by the simplicity and elegance of computational geometry.