dmj5
Class DMJ_TrapShapeAstroid

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

class 
TrapShape:DMJ_TrapShapeAstroid



Ultra Fractal Source

Toggle UF Source Code Display

 class DMJ_TrapShapeAstroid(common.ulb:TrapShape) {
 public:
   import "common.ulb"
 
   func DMJ_TrapShapeAstroid(Generic pparent)
     TrapShape.TrapShape(pparent)
   endfunc
   
   float func Iterate(complex pz)
     TrapShape.Iterate(pz)
 
     float d = abs(real(pz))^@p_power + abs(imag(pz))^@p_power
     if (@p_power < 0)
       d = 1/d
     endif
     return d
   endfunc
   
 default:
   title = "Astroid"
   
   int param v_dmj_trapshapeastroid
     caption = "Version (DMJ_TrapShapeAstroid)"
     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_trapshapeastroid < 100
   endparam
 
   float param p_power
     caption = "Squareness"
     default = 0.666666666666667
     hint = "Indicates the squareness of the astroid shape. Values less than one produce diamonds; values larger than one push the shape closer and closer towards a square."
   endparam
 }
 


Constructor Summary
DMJ_TrapShapeAstroid()
           
DMJ_TrapShapeAstroid(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_TrapShapeAstroid

public DMJ_TrapShapeAstroid(Generic pparent)

DMJ_TrapShapeAstroid

public DMJ_TrapShapeAstroid()
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