reb
Class ImageTrapColoringImag

Object
  extended by common:Generic
      extended by reb:ImageTrapColoring
          extended by reb:ImageTrapColoringImag

class 
ImageTrapColoring:ImageTrapColoringImag

Returns the imaginary value of the trapped point which has been weighted by a texture

Returns either the transformed or the untransformed point.The inherited function CResult() returns a color from a ColorTrap class if one is being used.


Ultra Fractal Source

Toggle UF Source Code Display

 class ImageTrapColoringImag(ImageTrapColoring) {
 ; Returns the imaginary value of the trapped point which has been weighted by a texture <br>
 ; <p>
 ; Returns either the transformed or the untransformed point.The inherited
 ; function CResult() returns a color from a ColorTrap class if one is being used.
 
 public:
   import "common.ulb"
 
   ; constructor
   func ImageTrapColoringImag(Generic pparent)
     ImageTrapColoring.ImageTrapColoring(pparent)
   endfunc
 
   ; use in the Result section of a direct coloring formula.
   float func Result(ImageTrapMode ptrapmode)
     ImageTrapColoring.Result(ptrapmode)
     if (@p_untransformed)
       return abs(imag(ptrapmode.GetUntransformedPoint(0))) + ptrapmode.GetTexture(0)
     else
       return abs(imag(ptrapmode.GetTransformedPoint(0))) + ptrapmode.GetTexture(0)
     endif
   endfunc
 
 default:
   title = "Imaginary"
   int param v_imag
     caption = "Version (Imaginary)"
     default = 100
     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_imag < 100
   endparam
 
   bool param p_untransformed
     caption = "Use value before transformation"
     default = true
     hint = "If checked, coloring will be based on the value prior to any trap position transformations."
   endparam
 }
 


Constructor Summary
ImageTrapColoringImag()
           
ImageTrapColoringImag(Generic pparent)
          constructor
 
Method Summary
 float Result(ImageTrapMode ptrapmode)
          use in the Result section of a direct coloring formula.
 
Methods inherited from class reb:ImageTrapColoring
CResult
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

ImageTrapColoringImag

public ImageTrapColoringImag(Generic pparent)
constructor


ImageTrapColoringImag

public ImageTrapColoringImag()
Method Detail

Result

public float Result(ImageTrapMode ptrapmode)
use in the Result section of a direct coloring formula.

Overrides:
Result in class ImageTrapColoring