reb
Class ImageTrapModeAlternatingAverage2
Object
common:Generic
reb:ImageTrapMode
reb:ImageTrapModeWithThreshold
reb:ImageTrapModeAlternatingAverage2
class
- ImageTrapModeWithThreshold:ImageTrapModeAlternatingAverage2
trap mode average variant based upon a class of Damien Jones
Ultra Fractal Source
Toggle UF Source Code Display
class ImageTrapModeAlternatingAverage2(ImageTrapModeWithThreshold) {
; trap mode average variant based upon a class of Damien Jones
public:
import "common.ulb"
; constructor
func ImageTrapModeAlternatingAverage2(Generic pparent)
ImageTrapModeWithThreshold.ImageTrapModeWithThreshold(pparent)
endfunc
; initialize the object
func Init(complex pz)
ImageTrapModeWithThreshold.Init(pz)
m_Solid = true
endfunc
; call for each iterated point
func Iterate(complex pz, complex pzt, float pdistance, float ptexture, color pcolor)
ImageTrapModeWithThreshold.Iterate(pz, pzt, pdistance,ptexture,pcolor)
m_a = alpha(pcolor)
if (pdistance < m_Threshold && m_a >= m_AThreshold)
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
m_ImagePoints[0] = pcolor
edgefade(pdistance)
endif
endfunc
default:
title = "Alternating Average 2"
int param v_alternatingaverage2
caption = "Version (Alternating Average 2)"
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_alternatingaverage2 < 100
endparam
}
Methods inherited from class Object |
|
ImageTrapModeAlternatingAverage2
public ImageTrapModeAlternatingAverage2(Generic pparent)
- constructor
ImageTrapModeAlternatingAverage2
public ImageTrapModeAlternatingAverage2()
Init
public void Init(complex pz)
- initialize the object
- Overrides:
Init
in class ImageTrapMode
Iterate
public void Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture,
color pcolor)
- call for each iterated point
- Overrides:
Iterate
in class ImageTrapMode