reb
Class REB_TrapShapeCfPlus
Object
common:Generic
common:TrapShape
reb:REB_TrapShapeCfPlus
class
- TrapShape:REB_TrapShapeCfPlus
This shape uses the ceil() and floor() functions.
The ceil() function is applied to the real component of z and the
floor() function is applied to the imaginary component of z. The shape
can also be used as a texture.
Ultra Fractal Source
Toggle UF Source Code Display
class REB_TrapShapeCfPlus(common.ulb:TrapShape) {
; This shape uses the ceil() and floor() functions. <br>
; <p>
; The ceil() function is applied to the real component of z and the
; floor() function is applied to the imaginary component of z. The shape
; can also be used as a texture.
public:
import "common.ulb"
; Constructor
func REB_TrapShapeCfPlus(Generic pparent)
TrapShape.TrapShape(pparent)
endfunc
; Call this for each iteration being trapped.
float func Iterate(complex pz)
TrapShape.Iterate(pz)
m_LastZ = pz - (ceil(real(pz))+ flip(floor(imag(pz))))
return abs(real(pz)-ceil(real(pz)) + imag(pz)-floor(imag(pz)))
endfunc
default:
title = "Cf Plus"
int param v_trapshapeCFPlus
caption = "Version (Trap Shape CF Plus)"
default = 101
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_trapshapeCFPlus < 101
endparam
}
Method Summary |
float |
Iterate(complex pz)
Call this for each iteration being trapped. |
Methods inherited from class Object |
|
REB_TrapShapeCfPlus
public REB_TrapShapeCfPlus(Generic pparent)
- Constructor
REB_TrapShapeCfPlus
public REB_TrapShapeCfPlus()
Iterate
public float Iterate(complex pz)
- Call this for each iteration being trapped.
- Overrides:
Iterate
in class TrapShape