reb
Class ImageTrapColoring

Object
  extended by common:Generic
      extended by reb:ImageTrapColoring
Direct Known Subclasses:
ImageTrapColoringAngleToOrigin, ImageTrapColoringAngleToTrap, ImageTrapColoringDistance, ImageTrapColoringImag, ImageTrapColoringIteration, ImageTrapColoringMagnitude, ImageTrapColoringReal

class 
Generic:ImageTrapColoring

This is a generic image trap coloring mode formula.

It take the results of a imag trap mode and returns both a value to use as a color index and a color


Ultra Fractal Source

Toggle UF Source Code Display

 class ImageTrapColoring(Generic) {
 ; This is a generic image trap coloring mode formula. <br>
 ; <p>
 ; It take the results of a imag trap mode and returns both a value to use as
 ; a color index and a color
 
 public:
 import "common.ulb"
 ; constructor
   func ImageTrapColoring(Generic pparent)
     Generic.Generic(pparent)
   endfunc
 
 ; get a final index result
   float func Result(ImageTrapMode ptrapmode)
     return ptrapmode.GetDistance(0)
   endfunc
 
 ; get a final color result
   color func CResult(ImageTrapMode ptrapmode)
     return ptrapmode.GetColor(0)
   endfunc
 
 default:
   int param v_imagetrapcoloring
     caption = "Version (Image Trap Coloring)"
     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_imagetrapcoloring < 100
   endparam
 }
 


Constructor Summary
ImageTrapColoring()
           
ImageTrapColoring(Generic pparent)
          constructor
 
Method Summary
 color CResult(ImageTrapMode ptrapmode)
          get a final color result
 float Result(ImageTrapMode ptrapmode)
          get a final index result
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

ImageTrapColoring

public ImageTrapColoring(Generic pparent)
constructor


ImageTrapColoring

public ImageTrapColoring()
Method Detail

Result

public float Result(ImageTrapMode ptrapmode)
get a final index result


CResult

public color CResult(ImageTrapMode ptrapmode)
get a final color result