1

How do we link two canvases (one showing 2d drawing and other 3d) on a webpage using JavaScript and P5.js so that if one shape is modified then it also affects the other canvas shapes?

Yeah, thank you. How they can be linked/interactive? If we change drawing in first screen, other screen also show that change.

F Jay
  • 11
  • 3

1 Answers1

0

It sounds like you're looking for instance mode.

You can read more about instance mode here, but basically it allows you to have multiple sketches running on the same page.

Get something very simple working, such as showing a circle on one canvas and a rectangle on another canvas. Then build up from there.

Kevin Workman
  • 41,537
  • 9
  • 68
  • 107