A downloadable game

This is a small project I created with Java to draw shapes and calculate their areas (with pixels being the units). The project isn't complex or extensive; instead, it is quite simple. All it does is draw shapes, filling them with random colors, and calculates their areas. To calculate the area, the project utilizes the shoelace theorem which can be used to calculate the area of convex and concave polygons (but not self-intersecting polygons).

To use the project, left-click to place a point for the current shape. Then once you are done making a shape, right click to close it off (the program will automatically create a new line segment joining the last point on the polygon with the first one). To clear the current shape, use the middle mouse button. To clear the whole screen, press backspace. When you right-click to confirm a shape, the program copies all of the points of the polygon (in whatever order you clicked) to your clipboard automatically.

Download

Download
ShapeCreator.exe 490 kB

Install instructions

To download and run the project, simply download the .exe (executable) file and double-click on it.

YOU NEED TO HAVE JAVA INSTALLED ON YOUR SYSTEM. Go to the following website to download Java: https://www.java.com/en/download/.

Leave a comment

Log in with itch.io to leave a comment.