reb
Class REB_TrapShapeCeilFloor

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

class 
TrapShape:REB_TrapShapeCeilFloor

This shape uses the ceil() and floor() functions.

The ceil() function is applied to the real component of z and the floor() 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_TrapShapeCeilFloor(common.ulb:TrapShape) {
  ; This shape uses the ceil() and floor() functions. <br>
  ; <p>
  ; The ceil() function is applied to the real component of z and the
  ; floor() 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_TrapShapeCeilFloor(Generic pparent)
      TrapShape.TrapShape(pparent)
    endfunc
    
   ; Call this for each iteration being trapped.
    float func Iterate(complex pz)
     TrapShape.Iterate(pz)
      m_LastZ = pz - (ceil(real(pz))+ flip(floor(imag(pz))))
      return abs(real(pz)-ceil(real(pz)))+abs(imag(pz)-floor(imag(pz)))
    endfunc
    
  default:
    title = "Ceil Floor"
   int param v_trapshapeceilfloor
     caption = "Version (Trap Shape Ceil Floor)"
     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_trapshapeceilfloor < 101
   endparam
  }
 


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

public REB_TrapShapeCeilFloor(Generic pparent)
Constructor


REB_TrapShapeCeilFloor

public REB_TrapShapeCeilFloor()
Method Detail

Iterate

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

Overrides:
Iterate in class TrapShape