@Override public void setResizable(boolean resizable) { deprecationWarning("setResizable"); surface.setResizable(resizable); }
@Override public void setup() { surface.setResizable(true); colorMode(HSB, 1.0f); PFont font = createDefaultFont(12); textFont(font); this.evoBoard = new Board(this, seed); resetZoom(); peripherals.onMouse(MouseButton.NONE, MouseAction.WHEEL, this::zoom); peripherals.onMouse(MouseButton.LEFT, MouseAction.PRESS, this::mouseDown); peripherals.onMouse(MouseButton.LEFT, MouseAction.RELEASE, this::mouseUp); }
protected void drawLoadAnimation() { animAlpha.update(); int alpha = animAlpha.getFloor(); if (alpha == 0) { animating = false; MiraApp.this.surface.setResizable(true); } float x = 0.5f * width; float y = 0.5f * height; float r = 75; fill(color(247), alpha); rect(0, 0, width, height); noStroke(); pushMatrix(); translate(0.5f * width, 0.5f * height); rotate(animTime); float da = PConstants.TWO_PI / 8; for (int i = 0; i < 8; i++) { fill(106, 179, 219, PApplet.map(i, 0, 9, 0, alpha)); arc(0, 0, r, r, i * da, (i + 1) * da); } popMatrix(); fill(250, alpha); ellipse(x, y, r - 5, r - 5); animTime += 0.1f; }