Standard
Class Standard_Basic
Object
common:Generic
common:Coloring
common:GradientColoring
Standard:Standard_Basic
class
- GradientColoring:Standard_Basic
Object version of Basic in Standard.ucl.
Four basic and classic ways to color a fractal. Other classic
algorithms are Decomposition, Binary Decomposition, and
Distance Estimator.
Ultra Fractal Source
Toggle UF Source Code Display
class Standard_Basic(common.ulb:GradientColoring) {
;
; Object version of Basic in Standard.ucl.
;
; Four basic and classic ways to color a fractal. Other classic
; algorithms are Decomposition, Binary Decomposition, and
; Distance Estimator.
;
public:
float func ResultIndex(complex pz)
if @type == "Iteration"
return 0.01 * m_Iterations
elseif @type == "Real"
return 0.05 * (4 + real(pz))
elseif @type == "Imaginary"
return 0.05 * (4 + imag(pz))
else
return 0.05 * (4 + real(pz) + imag(pz))
endif
endfunc
default:
title = "Basic"
helpfile = "Uf*.chm"
helptopic = "Html/coloring/standard/basic.html"
param type
caption = "Coloring Type"
enum = "Iteration" "Real" "Imaginary" "Sum"
hint = "Specifies how the fractal is colored. Most options work best \
with low bail-out values for the fractal formula, like 4. \
The Iteration option is the classic way to color fractals."
endparam
}
Method Summary |
float |
ResultIndex(complex pz)
Produce a resulting color index after a sequence is finished |
Methods inherited from class Object |
|
Standard_Basic
public Standard_Basic()
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)