Polygon Spiral
From Ultrafractal Wiki
Polygon Spiral is a Transformation in sam.ufx.
Contents |
What is it?
This transformation draws a spiral of arbitrary regular polygons. The polygon are rotated of a definite angle at each iteration and are sized such as the vertices of each lie on the sides of the previous one (i.e. they are in a way "tangent" to each other).
Parameters
Mode
- Mapping : This is an old mode kept for backward compatibility, try avoiding using it...
- Color : This mode color periodically each polygon with a color. You can specify the number of colors with the "Color number" parameter. The colors displayed are those occurring at the points (k/[Color number], k integer and smaller than [Color number]) of the real axe. This means you have better use this mode with the "Gradient" coloring and a neutral formula, such as "pixel".
- Mapping (corrected) : This mode maps the underlying image on each polygon. It corrects a little bug that occurred in the "Mapping" mode when using the Mapping Center/Rotation/Magnification parameters.
Order
The number of side of the regular polygon.
Angle step
The angle the polygon will be rotated at each iteration.
Mapping Center/Rotation/Magnification
To specify which part of the underlying image will be mapped on the polygons.
Color Number
The number of colors used in the "Color" mode (see above).
Outside
How the outside of the first polygon will look like. "Standard" display the underlying image and "Solid" assign solid color to outside points. "Old" is kept for backward compatibility.
Example
Copyright 2001 Samuel Monnier
squarespiral {
fractal:
title="squarespiral" width=600 height=600 author="Samuel"
created="February 10, 2001" numlayers=3
layer:
method=multipass caption="Layer 1" opacity=100 visible=yes alpha=no
mergemode=multiply
mapping:
center=0.00253680135216216213/-0.00254689865316216217
magn=1.74858223062381853 angle=0 numtransforms=1
transform:
filename="sam.uxf" entry="PolygonSpiral" p_mode="Mapping" p_order=4
p_alpha=30 p_center=0/0 p_rot=0 p_mag=0.9 p_rw=1 p_rh=1 p_mtw=1 p_ncol=3
p_niter=20 p_outsol="Standard"
formula:
filename="sam.ufm" entry="pixeldis1" maxiter=100 percheck=normal
inside:
transfer=none repeat=yes
outside:
filename="sam.ucl" entry="PolygonalGradient" transfer=linear repeat=yes
p_order=4 p_r=1 p_power=0.01 p_center=0/0 p_rot=0
gradient:
smooth=yes numnodes=2 index=358 color=0 index=394 color=16777215
layer:
method=multipass caption="New Layer 2" opacity=100 visible=yes alpha=no
mergemode=hardlight
mapping:
center=0.00253680135216216213/-0.00254689865316216217
magn=1.74858223062381853 angle=0 numtransforms=1
transform:
filename="sam.uxf" entry="PolygonSpiral" p_mode="Color" p_order=4
p_alpha=30 p_center=0/0 p_rot=0 p_mag=1 p_rw=1 p_rh=1 p_mtw=1 p_ncol=3
p_niter=20 p_outsol="Standard"
formula:
filename="sam.ufm" entry="pixeldis1" maxiter=100 percheck=normal
inside:
transfer=none repeat=yes
outside:
filename="sam.ucl" entry="LinearGradient" transfer=linear repeat=yes
p_rot=0
gradient:
smooth=yes numnodes=5 index=3 color=4156284 index=59 color=16045264
index=148 color=8088928 index=283 color=13886667 index=366 color=5834786
layer:
method=multipass caption="New Layer 1" opacity=100 visible=yes alpha=no
mapping:
center=0.00253680135216216213/-0.00254689865316216217
magn=1.74858223062381853 angle=0 numtransforms=1
transform:
filename="sam.uxf" entry="PolygonSpiral" p_mode="Mapping" p_order=4
p_alpha=30 p_center=0/0 p_rot=270 p_mag=1 p_rw=1 p_rh=1 p_mtw=1 p_ncol=3
p_niter=20 p_outsol="Standard"
formula:
filename="sam.ufm" entry="pixeldis1" maxiter=100 percheck=normal
inside:
transfer=none repeat=yes
outside:
filename="sam.ucl" entry="SFBMpix" transfer=linear repeat=yes
p_mode="Perlin's" p_niter=10 p_string=yes p_power1=0.1 p_scaledis="Fancy"
p_size=4 p_magn=2 p_rot=90 p_power=1 p_sin="Sin" p_perturb=no
p_seed=123094 p_randmode="Division II" p_mod="Use sqrt(i)" f_f1=exp
gradient:
smooth=no numnodes=2 index=96 color=16777215 index=384 color=7303023
}

