Standard
Class Standard_Twist
Object
common:Generic
common:Transform
common:UserTransform
Standard:Standard_Twist
class
- UserTransform:Standard_Twist
Object version of Twist in Standard.uxf.
Adds a twisted spiral to the layer.
Originally written by Luke Plant.
Ultra Fractal Source
Toggle UF Source Code Display
class Standard_Twist(common.ulb:UserTransform) {
;
; Object version of Twist in Standard.uxf.
; Adds a twisted spiral to the layer.
;
; Originally written by Luke Plant.
;
public:
complex func Iterate(complex pz)
d = (pz-@center)
return d*exp(flip(@twist*exp(-|d|*@dec))) + @center
endfunc
default:
title = "Twist"
helpfile = "Uf*.chm"
helptopic = "Html/transformations/standard/twist.html"
param center
caption = "Twist Center"
default = (0.5,0.1)
hint = "Center of the twisted spiral. Use the Eyedropper to set \
this parameter."
endparam
param twist
caption = "Strength"
default = 8.0
hint = "Adjusts the strength of the spiral. Larger values will \
create more strongly twisted spirals."
endparam
param dec
caption = "Decay Factor"
default = 10.0
hint = "Specifies how soon the spiral loses its strength. Larger \
values will create smaller spirals."
endparam
}
Methods inherited from class Object |
|
Standard_Twist
public Standard_Twist()
Iterate
public complex Iterate(complex pz)
- Description copied from class:
Transform
- Transform a single point within a sequence
After a sequence has been set up with Init(), this function
will be called once for each value in the sequence. Note
that all values in the sequence must be processed in order
(they cannot be processed out of order). If the sequence
contains only one value, Init() will still be called and
then Iterate() will be called just once.
- Overrides:
Iterate
in class Transform
- Parameters:
pz
- the complex value to be transformed
- Returns:
- the transformed value