# Connect dots with lines

**URL:** <https://discourse.processing.org/t/connect-dots-with-lines/24493>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [October 10, 2020, 5:11am UTC](https://discourse.processing.org/t/connect-dots-with-lines/24493 "2020-10-10T05:11:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernanda\_123](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fernanda\_123](https://discourse.processing.org/u/fernanda_123)\
**Post date:** [October 10, 2020, 5:11am UTC](https://discourse.processing.org/t/connect-dots-with-lines/24493/1 "2020-10-10T05:11:50Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

Hi, I’m new in processing and I hope someone can help me with a proyect 😃  
So, I have to make a program where I make points and each point have to be connected by a line to make a polygon, and at the same point where we started it have to finished. The program, after closing a polygon, must allow creating a new one on the same screen  
and the points that are made have to be made with the mouse.

I’ve tried everything, but nothing works ☹

Thanks for your help !!

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 10, 2020, 10:52am UTC](https://discourse.processing.org/t/connect-dots-with-lines/24493/2 "2020-10-10T10:52:54Z")

</div>

> [@fernanda\_123](#):
>
> I’ve tried everything, but nothing works

You have not tried everything yet.

> [@fernanda\_123](#):
>
> points that are made have to be made with the mouse.

Can you do this? That was my first step.  
Please share this part with us.

One of the best tools in a programmer’s tool chest is knowing the resources available to you and learning to navigate, filter, and use them.

A short list of resources to peruse:

> **Resources \< Click here to expand !**
>
> Explore the resources available here:
> 
> - The Processing _website_ has references, examples, tutorials, links to resources, etc.  
> [https://processing.org/](https://processing.org/)
> 
> - The Processing PDE (IDE) has lots to offer!  
> An exploration of the menu bar will reveal what is available there;  
> libraries, tools, local examples, and other goodies are in there.
> 
> - The Coding Train \< Experience the unbridled enthusiasm of Daniel Shiffman  
> [https://shiffman.net/](https://shiffman.net/)  
> [https://www.youtube.com/user/shiffman](https://www.youtube.com/user/shiffman)  
> [https://thecodingtrain.com/](https://thecodingtrain.com/)
> 
> - Happy Coding  
> [Processing Tutorials - Happy Coding](https://happycoding.io/tutorials/processing/)
> 
> - The source code can give insight if you are adventurous:  
> [GitHub - processing/processing: Source code for the Processing Core and Development Environment (PDE)](https://github.com/processing/processing)
> 
> - Explore Processing on GitHub:  
> [Processing Foundation · GitHub](https://github.com/processing)  
> [processing/core/src/processing/core/PApplet.java at master · processing/processing · GitHub](https://github.com/processing/processing/blob/master/core/src/processing/core/PApplet.java) \< Many of the Processing functions are here!
> 
> - The Processing Foundation  
> [https://processingfoundation.org/](https://processingfoundation.org/)  
> Check out the menu.  
> In the education menu, there is a reference to the Coding Train.
> 
> - And the Internet. `:)`

`:)`
