reb
Class REB_TrapShapeCeilFloor
Object
common:Generic
common:TrapShape
reb:REB_TrapShapeCeilFloor
class
- TrapShape:REB_TrapShapeCeilFloor
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_TrapShapeCeilFloor(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_TrapShapeCeilFloor(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)))+abs(imag(pz)-floor(imag(pz)))
endfunc
default:
title = "Ceil Floor"
int param v_trapshapeceilfloor
caption = "Version (Trap Shape Ceil Floor)"
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_trapshapeceilfloor < 101
endparam
}
Method Summary |
float |
Iterate(complex pz)
Call this for each iteration being trapped. |
Methods inherited from class Object |
|
REB_TrapShapeCeilFloor
public REB_TrapShapeCeilFloor(Generic pparent)
- Constructor
REB_TrapShapeCeilFloor
public REB_TrapShapeCeilFloor()
Iterate
public float Iterate(complex pz)
- Call this for each iteration being trapped.
- Overrides:
Iterate
in class TrapShape