Standard
Class Standard_TrapShapeHeart

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by Standard:Standard_TrapShapeHeart

class 
TrapShape:Standard_TrapShapeHeart



Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapShapeHeart(common.ulb:TrapShape) {
 public:
   float func Iterate(complex pz)
     complex zh = real(pz) + flip(abs(imag(pz)))
     ; Use parentheses to force a constant expression.
     zh = zh * (((0,1) ^ (@traporder / 8)) * 3 / @diameter)
     return abs(real(zh) - sqr(imag(zh)) + 3)
   endfunc
 default:
   title = "Heart"
   float param diameter
     caption = "Diameter"
     default = 1
     hint = "This is the heart diameter."
   endparam
   float param traporder
     caption = "Order"
     default = 4
     hint = "This modifies the shape of the heart."
   endparam
 }
 


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

Standard_TrapShapeHeart

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