mt
Class MT_TextureColoring
Object
common:Generic
common:Coloring
common:GradientColoring
mt:MT_TextureColoring
class
- GradientColoring:MT_TextureColoring
Mark Townsend, May 2008
Ultra Fractal Source
Toggle UF Source Code Display
class MT_TextureColoring(common.ulb:GradientColoring) {
;
; Mark Townsend, May 2008
;
public:
func MT_TextureColoring(Generic pparent)
GradientColoring(pparent)
fTexture = new @p_texture(this)
endfunc
func Init(complex pz, complex ppixel)
GradientColoring.Init(pz, ppixel)
fTexture.Init(pz)
endfunc
float func ResultIndex(complex pz)
return fTexture.Iterate(pz)
endfunc
private:
TrapShape fTexture
default:
title = "Texture"
TrapShape param p_texture
caption = "Texture"
default = MT_PerlinNoiseTexture
endparam
}
Methods inherited from class Object |
|
MT_TextureColoring
public MT_TextureColoring(Generic pparent)
MT_TextureColoring
public MT_TextureColoring()
Init
public void Init(complex pz,
complex ppixel)
- Description copied from class:
GradientColoring
- 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 GradientColoring
- Parameters:
pz
- first value for the sequence; for a normal coloring formula, this will be #zppixel
- seed value for the sequence; for a normal coloring formula, this will be #pixel
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)