|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcommon:Generic
common:Formula
common:DivergentFormula
ck:Manowar
class
Object version of Fractint Manowar Formula
class Manowar(common.ulb:DivergentFormula) {
;
; Object version of Fractint Manowar Formula
;
public:
import "Common.ulb"
import "Standard.ulb"
complex func Init(complex pz)
oldz=pz;
complex z= #pixel+@Pertubation
z1=#pixel;
oldz=z
return z;
endfunc
complex func Iterate(complex pz)
oldz = pz
z = pz^@p_power + z1 + #pixel
z1 = oldz
return z;
endfunc
private:
complex oldz;
complex z1;
default:
title = "Manowar"
rating = recommended
helptopic = "Html/formulas/standard/mandelbrot.html"
complex param Pertubation
caption = "Pertubation"
default = (0,0)
endparam
param p_power ; Overrides p_power from Formula
caption = "Power"
default = (2,0)
hint = "This parameter sets the exponent for the Mandelbrot formula. \
Increasing the real part to 3, 4, and so on, will add discs to \
the Mandelbrot figure. Non-integer real values and non-zero \
imaginary values will create distorted Mandelbrot sets. Use (2, 0) \
for the standard Mandelbrot set."
endparam
float param p_bailout ; Overrides p_bailout from DivergentFormula
caption = "Bailout value"
default = 4.0
min = 1.0
exponential = true
hint = "This parameter defines how soon an orbit bails out while \
iterating. Larger values give smoother outlines; values around 4 \
give more interesting shapes around the set. Values less than 4 \
will distort the fractal."
endparam
}
| Constructor Summary | |
|---|---|
Manowar()
|
|
| Method Summary | |
|---|---|
complex |
Init(complex pz)
Set up for a sequence of values |
complex |
Iterate(complex pz)
Produce the next value in the sequence |
| Methods inherited from class common:DivergentFormula |
|---|
GetUpperBailout, IsBailedOut |
| Methods inherited from class common:Formula |
|---|
GetLowerBailout, GetPrimaryExponent |
| Methods inherited from class common:Generic |
|---|
GetParent |
| Methods inherited from class Object |
|---|
|
| Constructor Detail |
|---|
public Manowar()
| Method Detail |
|---|
public complex Init(complex pz)
DivergentFormulaThis function will be called at the beginning of each sequence of values (e.g. at the beginning of each fractal orbit).
Init in class DivergentFormulapz - seed value for the sequence; for a normal fractal formula, this will be #pixel
public complex Iterate(complex pz)
FormulaAs long as the sequence has not bailed out, this function will be continually called to produce sequence values.
Iterate in class Formulapz - previous value in the sequence; corresponds to #z in a fractal formula. Note that you should always use this value for computing the next iteration, rather than a saved value, as the calling code may modify the returned value before passing it back to the next Iterate() call.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||