Skip to content

Used for displaying the coordinates on vertices and visualizing polygons.

Notifications You must be signed in to change notification settings

RobotNinja15/polygondraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Used for displaying the coordinates on vertices and visualizing polygons.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages