reb
Class REB_TrapShapeTrPlus

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

class 
TrapShape:REB_TrapShapeTrPlus

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_TrapShapeTrPlus(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_TrapShapeTrPlus(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 abs(real(pz)-round(real(pz))+imag(pz)-trunc(imag(pz)))
    endfunc
    
  default:
    title = "Tr Plus"
   int param v_trapshapetrplus
     caption = "Version (Trap Shape Tr Plus)"
     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_trapshapetrplus < 101
   endparam
  }
 


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

public REB_TrapShapeTrPlus(Generic pparent)
Constructor


REB_TrapShapeTrPlus

public REB_TrapShapeTrPlus()
Method Detail

Iterate

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

Overrides:
Iterate in class TrapShape