Welcome to Fractal Forums

Fractal Software => FractInt => Topic started by: simon.snake on October 20, 2013, 08:45:35 PM




Title: Trying to get this 'quarter' fractal to fill the other three quarters
Post by: simon.snake on October 20, 2013, 08:45:35 PM
The following code:

Code:
simon0123-C {
  p  = pixel
  pr = real(p)
  pi = imag(p)
  z  = ((p*100)-floor(p*100))/100
  count = 0:
  zr = real(z)
  zi = imag(z)
  zr = zr * zr + pr
  zi = zi * zi + pi
  z  = flip(zi) + zr
  count = count + 1
  count <= 50
}

Generates the following fractal (I've zoomed out a tiny bit so the shape fits on the screen):

(http://www.needanother.co.uk/uploads/frac1129.gif)

when you set the outside colouring method to tdis (which is total distance orbit travels).

What I'd like to do is modify this so that all four quarters of the image show the detail (so in effect it is a square), but I simply can't work out how to achieve it simply.

I would expect that it would require some sort of abs, but how and where?

Anyone have any ideas?

Thanks in advance.

Simon


Title: Re: Trying to get this 'quarter' fractal to fill the other three quarters
Post by: simon.snake on October 20, 2013, 09:28:57 PM
I changed the formula to the following code:

Code:
simon0123-C {
  p  = pixel
  pr = 0-abs(real(p))
  pi = 0-abs(imag(p))
  z  = ((p*100)-floor(p*100))/100
  count = 0:
  zr = real(z)
  zi = imag(z)
  zr = zr * zr + pr
  zi = zi * zi + pi
  z  = flip(zi) + zr
  count = count + 1
  count <= 50
}

Which makes the formula produce a square of similar shape, but it appears to be a bit rectangular rather than square.:

(http://www.needanother.co.uk/uploads/frac1132.gif)

Wonder why the aspect ratio has changed.


Title: Re: Trying to get this 'quarter' fractal to fill the other three quarters
Post by: Nahee_Enterprises on October 20, 2013, 10:42:58 PM
    The following code:
            ...........
    Generates the following fractal (I've zoomed out a tiny bit so the shape fits on the screen):
            http://www.needanother.co.uk/uploads/frac1129.gif (http://www.needanother.co.uk/uploads/frac1129.gif)
    when you set the outside colouring method to tdis (which is total distance orbit travels).
    What I'd like to do is modify this so that all four quarters of the image show the detail (so in effect it is
    a square), but I simply can't work out how to achieve it simply.
    I would expect that it would require some sort of abs, but how and where?
    Anyone have any ideas?

    I changed the formula to the following code:
            ...........
    Which makes the formula produce a square of similar shape, but it appears to be a bit rectangular rather than square.:
            http://www.needanother.co.uk/uploads/frac1132.gif (http://www.needanother.co.uk/uploads/frac1132.gif)
    Wonder why the aspect ratio has changed.

First off, what about the parameters to use with the formula??  Secondly, what do you have your image resolution set to??
 


Title: Re: Trying to get this 'quarter' fractal to fill the other three quarters
Post by: Gregoryno6 on December 18, 2014, 06:00:26 AM
I would have used Gimp.
(Runs for cover)