jlb
Class JLB_TrapShapeGnarl

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

class 
TrapShape:JLB_TrapShapeGnarl

Gnarl shape


Ultra Fractal Source

Toggle UF Source Code Display

 class JLB_TrapShapeGnarl(common.ulb:TrapShape) {
   ; Gnarl shape
 
 public:
   import "common.ulb"
 
   func JLB_TrapShapeGnarl(Generic pparent)
     TrapShape.TrapShape(pparent)
   endfunc
 
   float func Iterate(complex pz)
     float ang = atan2(pz)
     if (@mode == 0)
       return real(@a1*@f1(@b1*ang + @a2*@f2(@b2*ang + @a3*@f3(@b3*ang))))
     else
       return real(@a1*@f1(@b1*ang) + @a2*@f2(@b2*ang) + @a3*@f3(@b3*ang))
     endif
   endfunc
 
 protected:
 default:
   title = "Gnarl3"
   param mode
     caption = "mode"
     enum = "f(f(f())))" "f()+f()+f()"
     default=0
   endparam
   float param a1
     caption = "a1=Gnarl multiplier"
     default = 1
     hint="r=a1*f1(b1*ang + a2*f2(b2*ang + a3*f3(b3*ang))) \
         OR a1*f1(b1*ang) + a2*f2(b2*ang) + a3*f3(b3*ang)"
   endparam
   float param a2
     caption = "a2"
     default = 0.5
   endparam
   float param a3
     caption = "a3"
     default = 0.25
   endparam
   float param b1
     caption = "b1"
     default = 3
   endparam
   float param b2
     caption = "b2"
     default = 2
     visible=( (@a1*@a2) != 0)
   endparam
   float param b3
     caption = "b3"
     default = 1
     visible=( (@a1*@a2*@a3) != 0)
   endparam
   func f1
     caption = "f1"
     default = cos()
   endfunc
   func f2
     caption = "f2"
     default = sin()
     visible=( (@a1*@a2) != 0)
   endfunc
   func f3
     caption = "f3"
     default = tan()
     visible=( (@a1*@a2*@a3) != 0)
   endfunc
 }
 


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

JLB_TrapShapeGnarl

public JLB_TrapShapeGnarl(Generic pparent)

JLB_TrapShapeGnarl

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