reb
Class REB_TrapColoringIteration

Object
  extended by common:Generic
      extended by common:TrapColoring
          extended by reb:REB_TrapColoringIteration

class 
TrapColoring:REB_TrapColoringIteration

Returns a value based upon the iteration # which has been weighted by a texture

An option for returning a modulus of the interation # is also available.


Ultra Fractal Source

Toggle UF Source Code Display

 class REB_TrapColoringIteration(common.ulb:TrapColoring) {
 ; Returns a value based upon the iteration # which has been weighted by a texture <br>
 ; <p>
 ; An option for returning a modulus of the interation # is also available.
 public:
   import "common.ulb"
 
   ; Constructor
   func REB_TrapColoringIteration(Generic pparent)
     TrapColoring.TrapColoring(pparent)
   endfunc
 
   ; use in the Result section of a gradient coloring formula.
   float func Result(TrapMode ptrapmode)
     TrapColoring.Result(ptrapmode)
     if @discrete == "discrete colors"
       return (ptrapmode.GetIteration(0) % @modcolor)/@modcolor  + ptrapmode.GetTexture(0)
     else
       return ptrapmode.GetIteration(0)*0.01  + ptrapmode.GetTexture(0)
     endif
   endfunc
 
 default:
   title = "REB Iteration"
   int param v_rebiteration
     caption = "Version (REB Iteration)"
     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_rebiteration < 100
   endparam
   param discrete
     caption = "Iteration options"
     default = 0
     enum = "normal" "discrete colors"
     hint = "'discrete colors' allows the user to set the total number of colors \
             to use with mod iter."
   endparam
   int param modcolor
     caption = "# of iteration colors"
     default = 8
     visible = @discrete == "discrete colors"
     hint = "Number of iteration colors to use with mod iter. This is useful \
             for gradient masks where the mask allows a specific mod iter to \
             be opaque or transparent."
   endparam
 }
 


Constructor Summary
REB_TrapColoringIteration()
           
REB_TrapColoringIteration(Generic pparent)
          Constructor
 
Method Summary
 float Result(TrapMode ptrapmode)
          use in the Result section of a gradient coloring formula.
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

REB_TrapColoringIteration

public REB_TrapColoringIteration(Generic pparent)
Constructor


REB_TrapColoringIteration

public REB_TrapColoringIteration()
Method Detail

Result

public float Result(TrapMode ptrapmode)
use in the Result section of a gradient coloring formula.

Overrides:
Result in class TrapColoring