window orientation

Is there a way to resize the canvas on a device orientation change is p5? Similar to the windowresized() function? I tried using the onorientationchange function but that doesn't work when you rotate and then rotate is back....

Sign In or Register to comment.