reb
Class REB_TrapShapeIkenaga
Object
common:Generic
common:TrapShape
reb:REB_TrapShapeIkenaga
class
- TrapShape:REB_TrapShapeIkenaga
Uses the Ikenaga fractal function as the trap
Ultra Fractal Source
Toggle UF Source Code Display
class REB_TrapShapeIkenaga(common.ulb:TrapShape) {
; Uses the Ikenaga fractal function as the trap
public:
import "common.ulb"
; Constructor
func REB_TrapShapeIkenaga(Generic pparent)
TrapShape.TrapShape(pparent)
endfunc
; Call this for each iteration being trapped.
float func Iterate(complex pz)
TrapShape.Iterate(pz)
complex p = pz*@scale
p = @fn1(p)
int ike_iter = 0
complex c = #pixel
while ike_iter < @max_iterations
p = p*p*p +(c-1)*p - c
ike_iter = ike_iter + 1
endwhile
m_LastZ = @fn2(p)
float d = abs(|pz| - |m_LastZ|)
return d
endfunc
default:
title = "Ikenaga"
int param v_trapshapeikenaga
caption = "Version (Trap Shape Ikenaga)"
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_trapshapeikenaga < 101
endparam
float param scale
caption = "Scale"
default = 1.0
endparam
param max_iterations
caption = "Ikenaga iterations"
hint = "This is the number of iterations for the Ikenaga formula."
default = 1
endparam
func fn1
caption = "Pre Function"
default = atan()
endfunc
func fn2
caption = "Post Function"
default = sinh()
endfunc
}
Method Summary |
float |
Iterate(complex pz)
Call this for each iteration being trapped. |
Methods inherited from class Object |
|
REB_TrapShapeIkenaga
public REB_TrapShapeIkenaga(Generic pparent)
- Constructor
REB_TrapShapeIkenaga
public REB_TrapShapeIkenaga()
Iterate
public float Iterate(complex pz)
- Call this for each iteration being trapped.
- Overrides:
Iterate
in class TrapShape