home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / virus / ddj0491.zip / OLIVER.ZIP / STRATUS.H < prev    next >
Text File  |  1990-12-05  |  2KB  |  50 lines

  1. /*   STRATUS.H
  2.      Header file for stratus cloud template
  3.      This (and the other header files like it) can be used to define
  4.      the initial fractal template for the SIERP.C and FRACDRAW.C programs
  5. */
  6.  
  7. #define NPOINTS 6    /* Number of points on the "parent" polygon */
  8. #define NTRANS  5    /* Number of transformed "children" */
  9. #define NLEVELS 5    /* Number of levels to draw */
  10. #define COUNT 10000  /* Number of dots to paint */
  11. #define CENTERX 320  /* Center of the screen */
  12. #define CENTERY 240
  13. #define SEEDX 40,80,40,-40,-80,-40  /* The "parent" polygon */
  14. #define SEEDY 22,-2,-22,-22,2,22
  15.  
  16. /* The tranformations which define the "children" */
  17.  
  18. #define MOVEX -70,-44,45,60,-3.3  /* Displacement */
  19. #define MOVEY 11,-34,-31,1.6,42
  20. #define SIZEX   .75,.43,.38,.75,.8    /* Size change */
  21. #define SIZEY   .45,.47,.44,.61,.2
  22. #define SPINX   6.3,6.3,6.3,6.3,0    /* Rotation */
  23. #define SPINY   6.3,6.3,6.3,6.3,6.3
  24.  
  25. /* The following color definitions are ignored by the SIERP program
  26.    and used only by FRACDRAW.
  27.  
  28.    PALETTE defines the 16-color VGA palette
  29.    COLOR intializes a two-dimensional array with color values:
  30.    each column in the array definition below corresponds to one level
  31.    of detail, and each row corresponds to a "part", or transformation.
  32.    Note that the array only needs to be 6 by 3 for the template defined
  33.    above, but more rows are included in case the user inserts additional
  34.    "parts".
  35. */
  36.  
  37. #define PALETTE {_BLACK, _RED, _GREEN, _CYAN, \
  38.                 _BLUE, _MAGENTA, _BROWN, _WHITE, \
  39.                 _GRAY, _LIGHTBLUE, _LIGHTGREEN, _LIGHTCYAN, \
  40.                 _LIGHTRED, _LIGHTMAGENTA, _LIGHTYELLOW, _BRIGHTWHITE}
  41. #define COLOR {{15,15,15,7,8},\
  42.                {15,15,15,15,15},\
  43.                {15,15,15,15,15},\
  44.                {15,15,15,15,15},\
  45.                {15,15,15,15,15},\
  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.