P5.js Copy Tool

Hello,
I hope everyone is doing well.

I’m trying to create a copy tool using P5.js.
I’m using a constructor function to make the tool.
What should I add to this function below? I want the copy button to work shapes.

Thank you

select("#copyButton").mouseClicked(function(){
 
 });

Hi,

It depends what you want to copy. :slight_smile:
I assume you want to copy objects and/or selections, so you need first handle this, and afterwards it woud be quite easy to copy/paste …

Cheers
— mnse

PS: btw. I see several individual post from you and all questions sounds like you want that someone should do it for you.
So, better try it yourself, and if you have concrete issues come back and ask for help for a specific issue …

1 Like

Hi,

Thank you for your response!
I want to copy shapes on the canvas that are drawn.

Cheers