reb
Class ImageTrapModeSmallest
Object
common:Generic
reb:ImageTrapMode
reb:ImageTrapModeWithThreshold
reb:ImageTrapModeSmallest
class
- ImageTrapModeWithThreshold:ImageTrapModeSmallest
Uses the smallest trapped point
Ultra Fractal Source
Toggle UF Source Code Display
class ImageTrapModeSmallest(ImageTrapModeWithThreshold) {
; Uses the smallest trapped point
public:
import "common.ulb"
; constructor
func ImageTrapModeSmallest(Generic pparent)
ImageTrapModeWithThreshold.IMageTrapModeWithThreshold(pparent)
endfunc
; call this at the beginning of each sequence
func Init(complex pz)
ImageTrapModeWithThreshold.Init(pz)
m_Solid = true
int j = 0
while (j < 4)
m_Distances[j] = 1e20
j = j + 1
endwhile
endfunc
; call this for each 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_Distances[0])
if pdistance < m_Threshold && m_a >= m_AThreshold
m_solid = false
endif
m_Distances[0] = abs(cabs(pz) - cabs(pzt))
m_UntransformedPoints[0] = pz
m_TransformedPoints[0] = pzt
m_IterationPoints[0] = m_Iterations
m_Textures[0] = ptexture
m_ImagePoints[0] = pcolor
edgefade(pdistance)
endif
endfunc
default:
title = "Smallest"
int param v_smallest
caption = "Version (Closest)"
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_smallest < 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,
color pcolor)
call this for each point |
Methods inherited from class Object |
|
ImageTrapModeSmallest
public ImageTrapModeSmallest(Generic pparent)
- constructor
ImageTrapModeSmallest
public ImageTrapModeSmallest()
Init
public void Init(complex pz)
- call this at the beginning of each sequence
- Overrides:
Init
in class ImageTrapMode
Iterate
public void Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture,
color pcolor)
- call this for each point
- Overrides:
Iterate
in class ImageTrapMode