jlb
Class JLB_TrapShapeRRL

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by jlb:JLB_TrapShapeRRL

class 
TrapShape:JLB_TrapShapeRRL

Same trap shape as Rose Range Light in lkm3.ucl if cos() and sin() are used.


Ultra Fractal Source

Toggle UF Source Code Display

 class JLB_TrapShapeRRL(common.ulb:TrapShape) {
   ; Same trap shape as Rose Range Light in lkm3.ucl if cos() and sin()
   ; are used.
 
 public:
   import "common.ulb"
 
   func JLB_TrapShapeRRK(Generic pparent)
     TrapShape.TrapShape(pparent)
   endfunc
 
   float func Iterate(complex pz)
     float ang = atan2(pz)
     float r
     if (@fnC == 0)
       r = @p_C_ampl*cos(@p_C_freq*ang)
     else
       r = @p_C_ampl*Math.RealBesselJ0(@p_C_freq*ang)
     endif
     if (@fnS == 0)
       r = r + @p_S_ampl*sin(@p_S_freq*ang)
     else
       r = r + @p_S_ampl*Math.RealBesselJ1(@p_S_freq*ang)
     endif
     return r
   endfunc
 
 protected:
 default:
   title = "RRL"
   param fnC
     caption = "C function"
     enum = "cos" "J0"
     default = 0
   endparam
   param p_C_ampl
     caption = "C amplitude"
     default = 1.0
   endparam
   param p_C_freq
     caption = "C frequency"
     default = 3.0
   endparam
   param fnS
     caption  =  "S function"
     enum = "sin" "J1"
     default = 0
   endparam
   param p_S_ampl
     caption = "S amplitude"
     default = 0.0
   endparam
   param p_S_freq
     caption = "S frequency"
     default = 0.0
   endparam
 }
 


Constructor Summary
JLB_TrapShapeRRL()
           
 
Method Summary
 float Iterate(complex pz)
          call this for each iteration being trapped
 void JLB_TrapShapeRRK(Generic pparent)
           
 
Methods inherited from class common:TrapShape
GetColorChannel, GetTextureValue, GetTransformedPoint, Init, IterateSilent, SetThreshold
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

JLB_TrapShapeRRL

public JLB_TrapShapeRRL()
Method Detail

JLB_TrapShapeRRK

public void JLB_TrapShapeRRK(Generic pparent)

Iterate

public float Iterate(complex pz)
Description copied from class: TrapShape
call this for each iteration being trapped

Overrides:
Iterate in class TrapShape