reb
Class REB_TrapShapeTruncRound

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by reb:REB_TrapShapeTruncRound

class 
TrapShape:REB_TrapShapeTruncRound

This shape uses the trunc() and round() functions.

The round() function is applied to the real component of z and the trunc() function is applied to the imaginary component of z. The shape can also be used as a texture.


Ultra Fractal Source

Toggle UF Source Code Display

 class REB_TrapShapeTruncRound(common.ulb:TrapShape) {
  ; This shape uses the trunc() and round() functions. <br>
  ; <p>
  ; The round() function is applied to the real component of z and the
  ; trunc() function is applied to the imaginary component of z. The shape
  ; can also be used as a texture.
  public:
    import "common.ulb"
 
 ; Constructor
    func REB_TrapShapeTruncRound(Generic pparent)
      TrapShape.TrapShape(pparent)
    endfunc
    
   ; Call this for each iteration being trapped.
    float func Iterate(complex pz)
     TrapShape.Iterate(pz)
      m_LastZ = pz - (round(real(pz))+ flip(trunc(imag(pz))))
      return 3*(abs(real(pz)-round(real(pz)))+abs(imag(pz)-trunc(imag(pz))))
    endfunc
    
  default:
    title = "Trunc Round"
   int param v_trapshapetruncround
     caption = "Version (Trap Shape Trunc Round)"
     default = 101
     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_trapshapetruncround < 101
   endparam
  }
 


Constructor Summary
REB_TrapShapeTruncRound()
           
REB_TrapShapeTruncRound(Generic pparent)
          Constructor
 
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

REB_TrapShapeTruncRound

public REB_TrapShapeTruncRound(Generic pparent)
Constructor


REB_TrapShapeTruncRound

public REB_TrapShapeTruncRound()
Method Detail

Iterate

public float Iterate(complex pz)
Call this for each iteration being trapped.

Overrides:
Iterate in class TrapShape