mt
Class MT_ManyBarnsleyIJulia
Object
common:Generic
common:Formula
common:DivergentFormula
mt:DivergentManyJulia
mt:MT_ManyBarnsleyIJulia
class
- DivergentManyJulia:MT_ManyBarnsleyIJulia
Based on Barnsley 1 (Julia) in Fractint.ufm
Mark Townsend, June 2008
Ultra Fractal Source
Toggle UF Source Code Display
class MT_ManyBarnsleyIJulia(DivergentManyJulia) {
;
; Based on Barnsley 1 (Julia) in Fractint.ufm
; <p>
; Mark Townsend, June 2008
;
public:
complex func Init(complex pz)
return DivergentManyJulia.Init(pz)
endfunc
complex func Iterate(complex pz)
if real(pz) >= 0
return (pz - 1) * m_seed
else
return (pz + 1) * m_seed
endif
endfunc
default:
title = "Many Barnsley I Julia"
param p_power
visible = false
endparam
float param p_bailout
caption = "Bailout value"
default = 128
min = 1.0
exponential = true
endparam
}
Methods inherited from class Object |
|
MT_ManyBarnsleyIJulia
public MT_ManyBarnsleyIJulia()
Init
public complex Init(complex pz)
- Description copied from class:
DivergentFormula
- Set up for a sequence of values
This function will be called at the beginning of each
sequence of values (e.g. at the beginning of each fractal
orbit).
- Overrides:
Init
in class DivergentManyJulia
- Parameters:
pz
- seed value for the sequence; for a normal fractal formula, this will be #pixel
- Returns:
- first value in the sequence; this corresponds to #z in a fractal formula
Iterate
public complex Iterate(complex pz)
- Description copied from class:
Formula
- Produce the next value in the sequence
As long as the sequence has not bailed out, this function
will be continually called to produce sequence values.
- Overrides:
Iterate
in class Formula
- Parameters:
pz
- 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.
- Returns:
- the next value in the sequence