dmj5
Class DMJ_TrapShapePinch

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by dmj5:DMJ_TrapShapePinch

class 
TrapShape:DMJ_TrapShapePinch



Ultra Fractal Source

Toggle UF Source Code Display

 class DMJ_TrapShapePinch(common.ulb:TrapShape) {
 public:
   import "common.ulb"
 
   func DMJ_TrapShapePinch(Generic pparent)
     TrapShape.TrapShape(pparent)
   endfunc
   
   float func Iterate(complex pz)
     TrapShape.Iterate(pz)
 
     float d = atan2(pz)
     if (d < 0)
       d = d + 2*#pi
     endif
     return sqrt(cabs(pz)) / abs(sin(d*@p_petals*0.5)) * 0.25
   endfunc
   
 default:
   title = "Pinch"
 
   int param v_dmj_trapshapepinch
     caption = "Version (DMJ_TrapShapePinch)"
     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_dmj_trapshapepinch < 100
   endparam
 
   float param p_petals
     caption = "Petals"
     default = 4.0
     hint = "Indicates how many petals the pinch trap shape should have."
   endparam
 }
 


Constructor Summary
DMJ_TrapShapePinch()
           
DMJ_TrapShapePinch(Generic pparent)
           
 
Method Summary
 float Iterate(complex pz)
          call this for each iteration being trapped
 
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

DMJ_TrapShapePinch

public DMJ_TrapShapePinch(Generic pparent)

DMJ_TrapShapePinch

public DMJ_TrapShapePinch()
Method Detail

Iterate

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

Overrides:
Iterate in class TrapShape