This method should be called only once at the start of setup. Calling createCanvas more than once in a sketch will result in very unpredictable behavior. If you want more than one drawing canvas you could use createGraphics (hidden by default but it can be shown).
Answers
Are you using P5.js or Processing.js? Either way the answer is yes. What have you tried so far?
codepen.io/mehedi432 github.com/mehedi432 i need to know about p5js..
Then it sounds like you're looking for instance mode. Please read this guide.
KevinWorkman
I want to know that,how many createCanvas() can i make in a single sketch?
https://Forum.Processing.org/two/discussions/tagged?Tag=#multiple+canvas
From the reference:
thnx #KevinWorkman && #GoToLoop