Skip to content

Latest commit

 

History

History
47 lines (26 loc) · 1.3 KB

README.md

File metadata and controls

47 lines (26 loc) · 1.3 KB

Polygon Drawer For 2D Coordinates

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.

Features

  • 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.

image

Installation

  1. Make sure you have Python installed on your system(of course).

  2. Clone this repository to your local machine:

    git clone https://github.com/RobotNinja15/polygondraw.git
  3. Navigate to the project directory:

    cd polygondraw
  4. Run the application:

    main.py

How to Use

  • Left-click anywhere on the canvas to add a vertex.
  • Right-click to draw a polygon using the added vertices(VERY SIMPLEEEEE).

Contributing

Contributions are welcome! you can Feel free to open issues or pull requests with any improvements or features you'd like to add.