title: Function can't be displayed in second canvas within p5.js
body: <p>I created two separate canvases with p5.js by creating a new instance (see line 58 in my javascript file). Then I inserted a function called &quot;firstAnimation&quot; that will be displayed in one of the canvases.</p>
  <p>Run the code here --&gt; <a href="https://editor.p5js.org/MaximilianFreitag/sketches/fP46XAHnP" rel="nofollow noreferrer">https://editor.p5js.org/MaximilianFreitag/sketches/fP46XAHnP</a></p>
  <p>In line 45 of my javascript file p5.js is telling me that my function &quot;secondAnimation&quot; does not exist. So I can not output another animation in this canvas</p>
  <p>In line 49 I can still draw a circle inside the second canvas with sketch.circle(100,100,100).</p>
  <p>How can I display my second function in the second canvas so that I have two animations?</p>
  <p><a href="https://i.stack.imgur.com/Mz3JJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mz3JJ.png" alt="enter image description here" /></a></p>
  <p>I can only add a simple circle</p>