Help with dragging an object using mousePressed

That is why I also included a video link, the same problem was solved in the video using plain JavaScript. I’ve explained it the much I can to the best of my abilities.

Hi Noel, how are you?..it’s being a very long time we communicated.
I am having a challenge I want you to help me solve:

How do I change the opacity(transparency) of the colours used to fill
the hexagons such that when a hexagon is above a number the number
will still be visible?

In this instance from the image provided the hexagon on the top right was
moved down and placed over the number 26 and the number is no longer visible.
I want a scenario where the opacity of the colour can be varied such that the number(s)
will always remain visible when the hexagons are over them.

Check the answer 29 of 41 on this thread,
The Graph and hexagons are displayed there.

Better start a new discussion because the topic is not related

Also can you please provide a running Sketch which shows what you mean?

You can say fill(255,65,0, 30);

to get 30 % of opacity

Please try

1 Like

This was the original thread on which this project was developed. I put it here so hopefully Noel will respond.

1 Like

Hi Chris, this is the link to the sketch.

https://editor.p5js.org/Chigoz/sketches/UfMtGqY3W

Thanks