This is a static web version of the original Tkinter project. It can be deployed directly on Vercel through GitHub.
index.htmlstyle.cssscript.jsvercel.json
- Create a new GitHub repository.
- Upload these files to the root of the repository.
- Go to Vercel and choose Add New Project.
- Import your GitHub repository.
- Keep the default framework setting as Other or Static.
- Leave the build command empty.
- Deploy.
The player draws a closed shape on a 10 by 10 grid. The program estimates the area using:
Area = 1/2 ∮(x dy - y dx)
In the code, this is approximated with the shoelace formula over many small line segments from the drawing.