common
Class ColorTrapImage
Object
common:Generic
common:ColorTrap
common:ColorTrapImage
class
- ColorTrap:ColorTrapImage
Use an imported image as a trap shape (with color).
Ultra Fractal Source
Toggle UF Source Code Display
class ColorTrapImage(ColorTrap) {
; Use an imported image as a trap shape (with color).
public:
func ColorTrapImage(Generic pparent)
ColorTrap.ColorTrap(pparent)
m_Image = new @f_image(this)
endfunc
func Init(complex pz)
ColorTrap.Init(pz)
endfunc
color func Iterate(complex pz)
return m_Image.getColor(pz)
endfunc
protected:
ImageWrapper m_Image
default:
title = "Image Trap"
int param v_colortrapimage
caption = "Version (ColorTrapImage)"
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_colortrapimage < 100
endparam
ImageWrapper param f_image
caption = "Image Object"
default = ImageImport
hint = "This is the image object to use for your image trap."
endparam
}
Method Summary |
void |
Init(complex pz)
call this before each sequence of values to be trapped |
color |
Iterate(complex pz)
call this to produce a result
you should always override this function |
Methods inherited from class Object |
|
ColorTrapImage
public ColorTrapImage(Generic pparent)
ColorTrapImage
public ColorTrapImage()
Init
public void Init(complex pz)
- Description copied from class:
ColorTrap
- call this before each sequence of values to be trapped
- Overrides:
Init
in class ColorTrap
Iterate
public color Iterate(complex pz)
- Description copied from class:
ColorTrap
- call this to produce a result
you should always override this function
- Overrides:
Iterate
in class ColorTrap