reb
Class REB_TrapShapeGenTexture

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

class 
TrapShape:REB_TrapShapeGenTexture

This texture is derived from the code of Dennis Magar.


Ultra Fractal Source

Toggle UF Source Code Display

 class REB_TrapShapeGenTexture(common.ulb:TrapShape) {
  ; This texture is derived from the code of Dennis Magar. <br>
  public:
    import "common.ulb"
 
 ; Constructor
    func REB_TrapShapeGenTexture(Generic pparent)
      TrapShape.TrapShape(pparent)
    endfunc
    
   ; Call this for each iteration being trapped.
    float func Iterate(complex pz)
     TrapShape.Iterate(pz)
     complex w = fn2(fn1((pz)*10^@pwr))*@ts
     complex ww = fn2(fn1((w - @fn6(w)))) + @toffset
     float t = cabs(ww)*@tc
     t = (t - round(t))*0.25
     m_LastZ = exp(flip(2*#pi * sqrt(2) * t))
     return t
    endfunc
    
  default:
    title = "General Textures"
   int param v_trapshapegeneraltextures
     caption = "Version (Trap Shape General Textures)"
     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_trapshapegeneraltextures < 101
   endparam
   param toffset
     caption = "Texture offset"
     default = (-1,-1)
     hint = "Changes the texture pattern."
   endparam
   param ts
     caption = "Texture scale"
     default = 100.0
   endparam
   param tc
     caption = "Texture modifier"
     default = 5.0
   endparam
   param pwr
     caption = "Texture power"
     default = 0.25
   endparam
   func fn1
     caption = "Texture Function 1"
     default = sqr()
   endfunc
   func fn2
     caption = "Texture Function 2"
     default = acos()
   endfunc
   func fn6
     caption = "Texture Function 3"
     default = round()
   endfunc
  }
 


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

public REB_TrapShapeGenTexture(Generic pparent)
Constructor


REB_TrapShapeGenTexture

public REB_TrapShapeGenTexture()
Method Detail

Iterate

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

Overrides:
Iterate in class TrapShape