dmj5
Class DMJ_TrapShapePinch
Object
common:Generic
common:TrapShape
dmj5:DMJ_TrapShapePinch
class
- TrapShape:DMJ_TrapShapePinch
Ultra Fractal Source
Toggle UF Source Code Display
class DMJ_TrapShapePinch(common.ulb:TrapShape) {
public:
import "common.ulb"
func DMJ_TrapShapePinch(Generic pparent)
TrapShape.TrapShape(pparent)
endfunc
float func Iterate(complex pz)
TrapShape.Iterate(pz)
float d = atan2(pz)
if (d < 0)
d = d + 2*#pi
endif
return sqrt(cabs(pz)) / abs(sin(d*@p_petals*0.5)) * 0.25
endfunc
default:
title = "Pinch"
int param v_dmj_trapshapepinch
caption = "Version (DMJ_TrapShapePinch)"
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_dmj_trapshapepinch < 100
endparam
float param p_petals
caption = "Petals"
default = 4.0
hint = "Indicates how many petals the pinch trap shape should have."
endparam
}
Method Summary |
float |
Iterate(complex pz)
call this for each iteration being trapped |
Methods inherited from class Object |
|
DMJ_TrapShapePinch
public DMJ_TrapShapePinch(Generic pparent)
DMJ_TrapShapePinch
public DMJ_TrapShapePinch()
Iterate
public float Iterate(complex pz)
- Description copied from class:
TrapShape
- call this for each iteration being trapped
- Overrides:
Iterate
in class TrapShape