Good morning
i'm working on my mandelbrot set
I'm looking for a way to speed up the zoom
since it's not going fast
thank you for your understanding
public void zoom() { double speed = 0; if (speed < -600) speed = -600; if (speed > 600) speed = 600; ZOOM += speed; if (ZOOM / 100 > getWorld().getWidth() - 1) if (ZOOM / 100 > getWorld().getHeight() - 1) ZOOM += (getWorld().getWidth() - 1) / 10; ZOOM += (getWorld().getHeight() - 1) / 10; if (ZOOM < 0) ZOOM = 0; update(); /* ZOOM++; if (ZOOM < 100) ZOOM = 200; update(); */ }
float hue = hueShift + plasma[y][x] % 1; img.setRGB(x, y, Color.HSBtoRGB(hue, 1, 1));