FORLOOP

THE BOX'S MAIN HELP:
This function generates a fractal pattern: murky
This is primarily a template for generating fractal pattern boxes.
PP   is the point used to seed the noise function.
FQ   is the frequency for the noise.
IT   is the number of iterations through the loop.
INC  is the increment for the loop counter.
SCL  is the divisor for the noise function on each iteration.
MULT is the divisor for SCL on each iteration.

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

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

IT (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 IT.

SCL (input):
This must be a float which is not equal to zero.
The noise seed is multiplied on each iteration by a larger 
and larger scale thus creating a higher frequency.
The noise function is divided on each iteration by a smaller
and smaller scale thus creating a higher amplitude.

MULT (input):
This must be a float which is not equal to zero.
This is the multiplier for SCL on each iteration.

OUT (output):
This function generates a fractal pattern: murky.
Such that:
for ( i = 0; i < IT; i += INC )
OUT += noise(SCL*FQ*PP)/SCL;
SCL *= MULT;
where OUT is initialized to 0 and SCL and MULT are not 0.
If MULT or SCL <= 0, OUT will be < 0 or black.

<-- BACK TO Functions

© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.