Standard
Class Standard_Smooth

Object
  extended by common:Generic
      extended by common:Coloring
          extended by common:GradientColoring
              extended by Standard:Standard_Smooth

class 
GradientColoring:Standard_Smooth

Object version of Smooth in Standard.ucl. This coloring method provides smooth iteration colors for Mandelbrot and other z^2 formula types (Phoenix, Julia). Results on other types may be unpredictable, but might be interesting. Thanks to Linas Vepstas for the math. Originally written by Damien M. Jones


Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_Smooth(common.ulb:GradientColoring) {
 ;
 ; Object version of Smooth in Standard.ucl.
 ;
 ; This coloring method provides smooth iteration colors for Mandelbrot and
 ; other z^2 formula types (Phoenix, Julia).  Results on other types may be
 ; unpredictable, but might be interesting.
 ;
 ; Thanks to Linas Vepstas for the math.
 ;
 ; Originally written by Damien M. Jones
 ;
 public:
   float func ResultIndex(complex pz)
     complex il = 1/log(@power)    ; Inverse log (power).
     float lp = log(log(@bailout))    ; log(log bailout).
     return 0.05 * real(m_Iterations + il*lp - il*log(log(cabs(pz))))
   endfunc
   
 default:
   title = "Smooth (Mandelbrot)"
   helpfile = "Uf*.chm"
   helptopic = "Html/coloring/standard/smooth.html"
   rating = recommended
   param power
     caption = "Exponent"
     default = (2,0)
     hint = "This should be set to match the exponent of the \
             formula you are using. For Mandelbrot, this is usually 2."
   endparam
   param bailout
     caption = "Bail-out value"
     default = 128.0
     min = 1
     hint = "This should be set to match the bail-out value in \
             the Formula tab. This formula works best with bail-out \
             values higher than 100."
   endparam
 }
 


Constructor Summary
Standard_Smooth()
           
 
Method Summary
 float ResultIndex(complex pz)
          Produce a resulting color index after a sequence is finished
 
Methods inherited from class common:GradientColoring
Init, IsGradient, IsSolid, Iterate, Result
 
Methods inherited from class common:Coloring
GetPixel
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

Standard_Smooth

public Standard_Smooth()
Method Detail

ResultIndex

public float ResultIndex(complex pz)
Description copied from class: GradientColoring
Produce a resulting color index after a sequence is finished

This corresponds to the final: section in a coloring formula. Once it is called, no further calls to Iterate() should be made without calling Init() first.

Overrides:
ResultIndex in class GradientColoring
Returns:
the gradient index (corresponding to #index in a coloring formula)