CodingTrain / Suggestion-Box

A repo to track ideas for topics
572 stars 86 forks source link

Adding two canvas to our P5 sketch #548

Open Shubham-19 opened 7 years ago

Shubham-19 commented 7 years ago

Can we add two canvases to our P5 sketch that shie up on diffrrent locations on a web page to perform different task over each canvas OR Can we include two different '.js' sketches that show up on different locations on a web page and perform differentn tasks

pzp1997 commented 7 years ago

There is an example of using two canvases with a single p5 sketch on the processing/p5.js GitHub repo.

Shubham-19 commented 7 years ago

Thank u I'll check the link

Shubham-19 commented 7 years ago

Thank u it helped me and now I can use this concept

Shubham-19 commented 7 years ago

But it gives an Uncaught Reference Error : Context is not defined