home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / drdobbs / 1991 / 04 / oliver / cirrus.h next >
Text File  |  1991-01-23  |  2KB  |  54 lines

  1. /*   CIRRUS.H--    Header file for cirrus cloud template
  2.      This (and the other header files like it) can be used to define
  3.      the initial fractal template for the SIERP.C and FRACDRAW.C programs
  4.      In this and the other cloud models (STRATUS and CUMULUS), the air
  5.      currents which control cloud formation are modelled as arrows.
  6.      When those forces are reflected throughout all levels of scale,
  7.      a realistic image of the cloud type that results from those air
  8.      currents appears.  Cirrus clouds are characterized by high-altitude
  9.      rising cross winds, stratus clouds by slow horizontal air flow,
  10.      and cumulus clouds by warm air rising from the ground.
  11. */
  12.  
  13. #define NPOINTS 7    /* Number of points on the "parent" polygon */
  14. #define NTRANS  6    /* Number of transformed "children" */
  15. #define NLEVELS 5    /* Number of levels to draw */
  16. #define COUNT 10000  /* Number of dots to paint */
  17. #define CENTERX 180  /* Center of the screen */
  18. #define CENTERY 240
  19. #define SEEDX 16,-27,-42,-7,-27,54,23  /* The "parent" polygon */
  20. #define SEEDY  33,52,36,-7,-13,-43,36
  21.  
  22. /* The tranformations which define the "children" */
  23. #define MOVEX 143.4,-90,5,-4  /* Displacement */
  24. #define MOVEY 11.08,13.6,-15.5,45
  25. #define SIZEX   .75,.43,.38,.75    /* Size change */
  26. #define SIZEY   .45,.47,.44,.21
  27. #define SPINX   6.07,0.05,0.02,0.0    /* Rotation */
  28. #define SPINY   6.07,0.05,0.02,6.28
  29.  
  30. /* The following color definitions are ignored by the SIERP program
  31.    and used only by FRACDRAW.
  32.    PALETTE defines the 16-color VGA palette
  33.    COLOR intializes a two-dimensional array with color values:
  34.    each column in the array definition below corresponds to one level
  35.    of detail, and each row corresponds to a "part", or transformation.
  36.    Note that the array only needs to be 6 by 3 for the template defined
  37.    above, but more rows are included in case the user inserts additional
  38.    "parts".
  39. */
  40. #define PALETTE {_BLACK, _RED, _GREEN, _CYAN, \
  41.          _BLUE, _MAGENTA, _BROWN, _WHITE, \
  42.          _GRAY, _LIGHTBLUE, _LIGHTGREEN, _LIGHTCYAN, \
  43.          _LIGHTRED, _LIGHTMAGENTA, _LIGHTYELLOW, _BRIGHTWHITE}
  44.  
  45. #define COLOR {{15,15,15, 7, 8},\
  46.                {15,15,15,15,15},\
  47.                {15,15,15,15,15},\
  48.                {15,15,15,15,15},\
  49.                {15,15,15,15,15},\
  50.                {15,15,15,15,15},\
  51.                {15,15,15,15,15},\
  52.                {15,15,15,15,15},\
  53.                {15,15,15,15,15}}
  54.