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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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(); */ } |
1 2 | float hue = hueShift + plasma[y][x] % 1 ; img.setRGB(x, y, Color.HSBtoRGB(hue, 1 , 1 )); |