def setup():
    size(400, 400, P3D)
    frame.setResizable(True)


def draw():
    background(255, 0, 0)
    ellipse(width / 2, height / 2, 100, 50)

def setup():
    size(400, 400, P3D)
    this.surface.setResizable(True)


def draw():
    background(255, 0, 0)
    ellipse(width / 2, height / 2, 100, 50)

Update ResizeTest.pyde