I was working on a P5.js project and I had a hard time trying to use coordinates to draw 2D shapes because I could not accurately determine where I wanted the shapes to be on my canvas(1920 by 1080), so This makes it easier for anyone to visualize the 2D shapes and also what coordinates they could use for positioning those shapes.
- Interactive drawing of polygons with left-click to add vertices and right-click to draw the polygon.
- Display of coordinates alongside each vertex(Nice).
- Simple and intuitive user interface.
-
Make sure you have Python installed on your system(of course).
-
Clone this repository to your local machine:
git clone https://github.com/RobotNinja15/polygondraw.git
-
Navigate to the project directory:
cd polygondraw
-
Run the application:
main.py
- Left-click anywhere on the canvas to add a vertex.
- Right-click to draw a polygon using the added vertices(VERY SIMPLEEEEE).
Contributions are welcome! you can Feel free to open issues or pull requests with any improvements or features you'd like to add.