Connect dots with lines

please format code with </> button * homework policy * asking questions

Hi, I’m new in processing and I hope someone can help me with a proyect :smiley:
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 :frowning:

Thanks for your help !!

You have not tried everything yet.

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:

:)