Skip to content

๐Ÿงฎ Lightweight polygon area calculator โ€” pure HTML, CSS & JS. Calculates area, perimeter, and centroid with a live canvas preview. No libraries, no backend.

Notifications You must be signed in to change notification settings

hello2himel/cordata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ Cordata - Polygon Area Calculator

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


๐Ÿš€ Features

  • ๐Ÿ“ 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

๐Ÿ—‚๏ธ Project Structure

cordata-web/
โ”‚
โ”œโ”€โ”€ index.html        # Main web page
โ”œโ”€โ”€ css/
โ”‚   โ””โ”€โ”€ style.css     # Stylesheet
โ””โ”€โ”€ js/
    โ””โ”€โ”€ script.js     # Geometry logic + rendering

โš™๏ธ How to Use

  1. Clone or download the repository.
  2. Open index.html in any modern web browser.
  3. Input polygon coordinates and see the results live.

๐ŸŒ Hosting

This app is live at: ๐Ÿ‘‰ https://cordata.netlify.app

You can also self-host using any static hosting platform like:

  • GitHub Pages
  • Netlify
  • Vercel

๐Ÿ“– License

MIT License โ€” free to use, modify, and share.


โœจ Acknowledgements

Built with โค๏ธ using vanilla HTML, CSS, and JS. Inspired by the simplicity and elegance of computational geometry.

About

๐Ÿงฎ Lightweight polygon area calculator โ€” pure HTML, CSS & JS. Calculates area, perimeter, and centroid with a live canvas preview. No libraries, no backend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published