FORLOOP

THE BOX'S MAIN HELP:
This function generates a fractal variable.
NUM is the number of iterations through the loop.
INC is the increment for the loop counter.
FQ  is the frequency for the noise.
PP  is the seed to the noise function.
SCL is multiplied by the noise function on each iteration.
DIV is the divisor for SCL on each iteration.

NUM (input):
This must be a positive integer.
This is the number of iterations through the loop.

INC (input):
This must be a postive integer.
This is the increment for the loop counter.
The counter starts at 0, increments by INC until it hits NUM.

FQ (input):
This must be a float.
This is the frequency for the noise.

PP (input):
This must be a point.  The default is the surface point, P.
This is the seed to the noise function.

SCL (input):
This must be a float which is not equal to zero.
This is multiplied by the noise function on each iteration.

DIV (input):
This must be a float. For best results it should be greater than 1.
This is the divisor for SCL on each iteration.

OUT (output):
This function generates a fractal variable.
Such that:
for ( i = 0; i < NUM; i += INC )
OUT += noise(FQ*PP) * SCL;
SCL /= DIV;
where OUT is initialized to 0 and SCL and DIV are not 0.
If DIV or SCL < 0, OUT is always 0 or black.
If DIV is <= 1, but > 0, OUT is always 1 or white.

<-- BACK TO Functions