Skip to content Skip to sidebar Skip to footer

How To Adjust Panning While Zooming

I want to pan while zooming into a Mandelbrot set so that the fractal portion of the function stays within the window. The code outputs a series of png images to later be made into

Solution 1:

I see more ways to achieve this

  1. predetermined location

    Use predetermined path that leads somewhere. But for that you would need to first zoom in manually to some interesting location and then just interpolate position and zoom from start view to target view.

    Of coarse for unknown target location (not precomputed) is this not possible.

    For example try to zoom to this location:

    x  = 0.267334004847543;y  =-0.102419298460876;

    it is nice spiral like target aligned up to zoom 1.0e14here screenshot:

    spiral fixed position

  2. you can use specific locations in fractal which due to symmetry is always inside fractal ...

    for example center on (-0.75,0.0):

    fixed positionfixed positionfixed positionfixed position

  3. Lock onto some kind of feature and pan it to predetermined location of view

    For example detect area that contains specified ratio between boundary and colored pixels and pan it to some fixed view position (like center or whatever).

    feature

    The feature can be anything but I would advise to avoid shape detection as this kind of fractal tent to change the shape of itself in zooms and pans to wild shapes one would not expect at start...

Post a Comment for "How To Adjust Panning While Zooming"