title: How do I resize a p5.Graphic object?
body: <p>In p5.js <code>resizeCanvas(x, y)</code> is a function for p5 objects but if I made a <code>p5.Graphics</code> object, can I resize it with a similar function?</p>
  
  <p>Interestingly, <code>p5.Graphics</code> objects can run <code>resizeGraphics()</code> but nothing happens (including no error) and the height and width remain the same in the console.</p>
  
  
  
  <pre class="lang-javascript prettyprint-override"><code>g = createGraphics(50, 50);   //creates p5.Graphics
  g.resizeCanvas(100, 100);     //fails: silently without error
  g.resize(100, 100);           //fails: resize has not been defined
  </code></pre>
  
  <p>Is there another function or would I need to actually extract the cooresponding graphics canvas and call a native javascript function instead?</p>
  
  <p>Thanks!</p>