This Formula let you choose 2 Fractal Formulas,
and blend them with this formula you can transform any fractal into any other
the only thing you should be aware is that mixing Divergent and Convergent
can lead to problems ...
This Formula allows you to choose a second formula to be taken at a certain iteration deepness
christian kleinhuis 2008
visit:
fractalforums.com
fractalmovies.com
given a complex number pz, locate the closest
point on the curve, the segment number it is on,
and the distance squared to that point; note
that distance can never be negative (use IsLeft()
to determine sign if you need it)
Note that this class is not intended for use with gradients.
If GradientMerge is called then UF's in-built gradient will be used.
For layer gradients the GradientLayer class should be used instead.
given a fractional segment number, determine the
distance from the curve start to that point
if ptotal is set, the distance will be cumulative
from all closed loops, not just from the start of
the closest closed loop
This class defines an easing function,
This Class Has only one function
Ease(x) where x is in the range of 0..1
The return value is the eased version of the input value
call this to begin processing a sequence
NOTE: although ColorTransfer computes colors, it is still initialized
with a complex value, usually corresponding to the point this
is being applied to
call this to begin processing a sequence
NOTE: although IntegerTransfer computes integers, it is still initialized
with a complex value, usually corresponding to the point this
is being applied to
call this to begin processing a sequence
NOTE: although Transfer computes reals, it is still initialized
with a complex value, usually corresponding to the point this
is being applied to
Derived from the public C code of Curtis McMullen and
material from Indra's Pearls by Mumford, Series and Wright
A new method for InitSpheres is needed, as both spheres
and Kleinian Group matricies must be initalized.
query: is a point to the left of a parabolic segment?
note that if the point is outside the triangle enclosing
the segment, we treat this as the same as if the point
is to the left of the lines bounding the parabolic arc
(we extend the arc by straight lines)
These sections are not necessary, since they will automatically be called
as part of the parent class
MMF_SwitchDivergentFormula.MMF_SwitchDivergentFormula(pparent)
endfunc
return MMF_SwitchDivergentFormula.Init(pz)
endfunc