jlb
Class JLB_ZTweakContraction

Object
  extended by common:Generic
      extended by mmf:Contraction
          extended by jlb:JLB_ZTweakContraction

class 
Contraction:JLB_ZTweakContraction

The Z tweaks, as in Compounding Tweaked Mandelbrot from lkm.ufm, as a Contraction.


Ultra Fractal Source

Toggle UF Source Code Display

 class JLB_ZTweakContraction(mmf.ulb:Contraction) {
 ; The Z tweaks, as in Compounding Tweaked Mandelbrot from lkm.ufm,
 ; as a Contraction.
  public:
 
   ; @param pz
   ; @param pc
   ; @return the new pz
   complex func Iterate(complex pz, complex pc)
     if (@tweaktype=="fn(c)")
       return pz + @tweakage*@tweakfunction(pc)
     elseif (@tweaktype=="fn(z)")
       return pz + @tweakage*@tweakfunction(pz)
     elseif (@tweaktype=="fn(c*z)")
       return pz + @tweakage*@tweakfunction(pc*pz)
     elseif (@tweaktype=="fn(z/c)")
       return pz + @tweakage*@tweakfunction(pz/pc)
     else;if (@tweaktype=="fn(c/z)")
       return pz + @tweakage*@tweakfunction(pc/pz)
     endif
   endfunc
 
 default:
   title = "Tweak Z"
   int param v_ztweakcontraction
      caption = "Version (ztweak_Contraction)"
      default = 100
      hint = "This version parameter is used to detect when a change has \
              been made to the formula that is incompatible with the \
              previous version. When that happens, this field will reflect \
              the old version number to alert you to the fact that an \
              alternate rendering is being used."
     visible = @v_ztweakcontraction < 100
   endparam
 
   param tweaktype
     caption="tweaking type"
     default=0
     enum= "fn(c)" "fn(z)" "fn(c*z)" "fn(z/c)" "fn(c/z)"
     hint="Sets how z gets tweaked."
   endparam
   param tweakage
     caption="tweaking amount"
     default=(0.01,0.0)
     hint="Usually small."
   endparam
   func tweakfunction
     caption="tweaking function"
     default=recip()
     hint="Function of the tweaking variable."
   endfunc
 }
 


Constructor Summary
JLB_ZTweakContraction()
           
 
Method Summary
 complex Iterate(complex pz, complex pc)
           
 
Methods inherited from class mmf:Contraction
Init
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

JLB_ZTweakContraction

public JLB_ZTweakContraction()
Method Detail

Iterate

public complex Iterate(complex pz,
                       complex pc)
Overrides:
Iterate in class Contraction
Parameters:
pz -
pc -
Returns:
the new pz