home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / virus / ddj0491.zip / OLIVER.ZIP / FLAKE.H < prev    next >
Text File  |  1991-01-23  |  2KB  |  41 lines

  1. /*   FLAKE.H ---     Header file for snowflake 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.      This template models the crystalization process to draw a realistic
  5.      snowflake shape
  6. */
  7. #define NPOINTS 6    /* Number of points on the "parent" polygon */
  8. #define NTRANS  6    /* 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 1,21,21,1,-21,-21  /* The "parent" polygon */
  14. #define SEEDY -27,-15,9,40,9,-15
  15.  
  16. /* The tranformations which define the "children" */
  17. #define MOVEX -1,55,55,1,-55,-55  /* Displacement */
  18. #define MOVEY -65,-35,35,65,35,-35
  19. #define SIZEX   .18,.18,.18,.18,.18,.18    /* Size change */
  20. #define SIZEY   .91,.91,.91,.91,.91,.91
  21. #define SPINX   0,1.05,2.09,3.14,4.19,5.24    /* Rotation */
  22. #define SPINY   0,1.05,2.09,3.14,4.19,5.24
  23.  
  24. /* The following color definitions are ignored by the SIERP program
  25.    and used only by FRACDRAW.  See comments in SIERP.H */
  26.  
  27. #define PALETTE {_BLACK, _RED, _GREEN, _CYAN, \
  28.              _BLUE, _MAGENTA, _BROWN, _WHITE, \
  29.          _GRAY, _LIGHTBLUE, _LIGHTGREEN, _LIGHTCYAN, \
  30.          _LIGHTRED, _LIGHTMAGENTA, _LIGHTYELLOW, _BRIGHTWHITE}
  31.  
  32. #define COLOR {{15,15,15,15,15},\
  33.                {15,15,15,15,15},\
  34.                {15,15,15,15,15},\
  35.                {15,15,15,15,15},\
  36.                {15,15,15,15,15},\
  37.                {15,15,15,15,15},\
  38.                {15,15,15,15,15},\
  39.                {15,15,15,15,15},\
  40.                {15,15,15,15,15}}
  41.