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.
It depends what you want to copy.
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 …