dmj5
Class DMJ_TrapModeAlternatingAverage2
Object
common:Generic
common:TrapMode
common:TrapModeWithThreshold
dmj5:DMJ_TrapModeAlternatingAverage2
class
- TrapModeWithThreshold:DMJ_TrapModeAlternatingAverage2
Ultra Fractal Source
Toggle UF Source Code Display
class DMJ_TrapModeAlternatingAverage2(common.ulb:TrapModeWithThreshold) {
public:
import "common.ulb"
func DMJ_TrapModeAlternatingAverage2(Generic pparent)
TrapModeWithThreshold.TrapModeWithThreshold(pparent)
endfunc
func Init(complex pz)
TrapModeWithThreshold.Init(pz)
m_Solid = true
endfunc
func Iterate(complex pz, complex pzt, float pdistance, float ptexture)
TrapModeWithThreshold.Iterate(pz, pzt, pdistance, ptexture)
if (pdistance < m_Threshold)
m_Distances[0] = abs(pdistance - m_Threshold + m_Distances[0])
m_Textures[0] = abs(ptexture - m_Threshold + m_Textures[0])
m_UntransformedPoints[0] = pz - m_UntransformedPoints[0]
m_TransformedPoints[0] = pzt - m_TransformedPoints[0]
m_IterationPoints[0] = abs(m_Iterations - m_IterationPoints[0])
m_Solid = false
endif
endfunc
default:
title = "Alternating Average 2"
int param v_dmj_trapmodealternatingaverage2
caption = "Version (DMJ_TrapModeAlternatingAverage2)"
default = 100
hint = "This version parameter is used to detect when a change has been made to the formula that is incompatible with the previous version. When that happens, this field will reflect the old version number to alert you to the fact that an alternate rendering is being used."
visible = @v_dmj_trapmodealternatingaverage2 < 100
endparam
}
Method Summary |
void |
Init(complex pz)
call this at the beginning of each sequence |
void |
Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture)
call this for each point |
Methods inherited from class Object |
|
DMJ_TrapModeAlternatingAverage2
public DMJ_TrapModeAlternatingAverage2(Generic pparent)
DMJ_TrapModeAlternatingAverage2
public DMJ_TrapModeAlternatingAverage2()
Init
public void Init(complex pz)
- Description copied from class:
TrapMode
- call this at the beginning of each sequence
- Overrides:
Init
in class TrapMode
Iterate
public void Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture)
- Description copied from class:
TrapMode
- call this for each point
- Overrides:
Iterate
in class TrapMode