jlb
Class JLB_CTweakContraction

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

class 
Contraction:JLB_CTweakContraction

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


Ultra Fractal Source

Toggle UF Source Code Display

 class JLB_CTweakContraction(mmf.ulb:Contraction) {
 ; The C 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 pc + @tweakage*@tweakfunction(pc)
     elseif (@tweaktype=="fn(z)")
       return pc + @tweakage*@tweakfunction(pz)
     elseif (@tweaktype=="fn(c*z)")
       return pc + @tweakage*@tweakfunction(pc*pz)
     elseif (@tweaktype=="fn(z/c)")
       return pc + @tweakage*@tweakfunction(pz/pc)
     else;if (@tweaktype=="fn(c/z)")
       return pc + @tweakage*@tweakfunction(pc/pz)
     endif
   endfunc
 
 default:
   title = "Tweak C"
   int param v_ctweakcontraction
      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_ctweakcontraction < 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 c 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_CTweakContraction()
           
 
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_CTweakContraction

public JLB_CTweakContraction()
Method Detail

Iterate

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