/** * Re-initialise the framebuffer with a different size. * * @param sketch Sketch with new size. */ public void setResolution(PApplet sketch) { setResolution(sketch.g); }
/** * Re-initialise the framebuffer with a different size. * * @param texture Texture object with new size. */ public void setResolution(PGraphics texture) { setResolution(texture.width, texture.height); }