mt
Class MT_ImageMapsTexture
Object
common:Generic
common:TrapShape
mt:MT_ImageMapsTexture
class
- TrapShape:MT_ImageMapsTexture
Mark Townsend, June 2008
Ultra Fractal Source
Toggle UF Source Code Display
class MT_ImageMapsTexture(common.ulb:TrapShape) {
;
; Mark Townsend, June 2008
;
public:
func MT_ImageMapsTexture(Generic pparent)
TrapShape.TrapShape(pparent)
fImage = new @p_image(this)
if !fImage.getEmpty()
fRatio = fImage.getWidth() / fImage.getHeight()
else
fRatio = 1
endif
endfunc
float func Iterate(complex pz)
TrapShape.Iterate(pz)
color clr = fImage.getColor(real(pz)+ flip(imag(pz) * fRatio))
return 1 - (0.3 * red(clr)+ 0.59 * green(clr) + 0.11 * blue(clr))
endfunc
private:
ImageWrapper fImage
float fRatio
default:
title = "Image Maps Texture"
ImageWrapper param p_image
caption = "Image"
default = ImageImport
endparam
}
Method Summary |
float |
Iterate(complex pz)
call this for each iteration being trapped |
Methods inherited from class Object |
|
MT_ImageMapsTexture
public MT_ImageMapsTexture(Generic pparent)
MT_ImageMapsTexture
public MT_ImageMapsTexture()
Iterate
public float Iterate(complex pz)
- Description copied from class:
TrapShape
- call this for each iteration being trapped
- Overrides:
Iterate
in class TrapShape