ck
Class ckDivergentManyJulia

Object
  extended by common:Generic
      extended by common:Formula
          extended by common:DivergentFormula
              extended by ck:ckDivergentManyJulia
Direct Known Subclasses:
ck_ManyJulia

class 
DivergentFormula:ckDivergentManyJulia

Mark Townsend. June 2008


Ultra Fractal Source

Toggle UF Source Code Display

 class ckDivergentManyJulia(common.ulb:DivergentFormula) {
 ;
 ; Mark Townsend. June 2008
 ;
 public:
   func ckDivergentManyJulia(Generic pparent)
     Formula.Formula(pparent)
   endfunc
   
   complex func Init(complex pz)
 
     float iscale = 1 / @scale
   complex image_size = #screenmax
   
   float pixx=(real(#screenpixel)/real(image_size))   *2-1
   float pixy=(imag(#screenpixel)/imag(image_size))   *2-1
   complex pix=pixx+flip(pixy)
   DivergentFormula.Init(pz)
 
     m_seed =round(pix * @scale) * iscale
     z =(pix-m_seed)* @scale * @jscale     
 
     m_seed=m_seed/(#magn/2)+(real(#center)+flip(-imag(#center)))
     return z
   endfunc
   
 protected:
   complex m_seed
     
 default:
   param scale
     caption = "Julia Density"
     default = 2.0
     hint = "Specifies the density of separate Julia sets; higher \
             numbers will produce more divisions."
   endparam
   param jscale
     caption = "Julia Zoom"
     default = 3.0
     hint = "Specifies the zoom level of Julia sets within each division."
   endparam
 }
 


Constructor Summary
ckDivergentManyJulia()
           
ckDivergentManyJulia(Generic pparent)
           
 
Method Summary
 complex Init(complex pz)
          Set up for a sequence of values
 
Methods inherited from class common:DivergentFormula
GetUpperBailout, IsBailedOut
 
Methods inherited from class common:Formula
GetLowerBailout, GetPrimaryExponent, Iterate
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

ckDivergentManyJulia

public ckDivergentManyJulia(Generic pparent)

ckDivergentManyJulia

public ckDivergentManyJulia()
Method Detail

Init

public complex Init(complex pz)
Description copied from class: DivergentFormula
Set up for a sequence of values

This function will be called at the beginning of each sequence of values (e.g. at the beginning of each fractal orbit).

Overrides:
Init in class DivergentFormula
Parameters:
pz - seed value for the sequence; for a normal fractal formula, this will be #pixel
Returns:
first value in the sequence; this corresponds to #z in a fractal formula