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

  1. LISTING 3================================================================
  2. /*   MAPLE.H --- Header file for maple tree 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. #define NPOINTS 4    /* Number of points on the "parent" polygon */
  7. #define NTRANS  3    /* Number of transformed "children" */
  8. #define NLEVELS 6    /* Number of levels to draw */
  9. #define COUNT 10000  /* Number of dots to paint */
  10. #define CENTERX 320  /* Center of the screen */
  11. #define CENTERY 350
  12.         /* The "parent" polygon */
  13. #define SEEDX 6,20,-6,-12  
  14. #define SEEDY -120,120,120,-120
  15.          /* The tranformations which define the "children" */
  16. #define MOVEX -6.1,-46,48  /* Displacement */
  17. #define MOVEY -156,-40,-38
  18. #define SIZEX  .65,.57,.58    /* Size change */
  19. #define SIZEY  .56,.77,.82
  20. #define SPINX   6.28,5.52,.44    /* Rotation */
  21. #define SPINY   6.28,5.52,.44
  22.  
  23. /* The following color definitions are ignored by the SIERP program
  24.    and used only by FRACDRAW.  See similar #defines in SIERP.H (Listing 2)
  25. */
  26. #define PALETTE {_BLACK, _RED, _GREEN, _CYAN, \
  27.          _BLUE, _MAGENTA, _BROWN, _WHITE, \
  28.          _GRAY, _LIGHTBLUE, _LIGHTGREEN, _LIGHTCYAN, \
  29.          _LIGHTRED, _LIGHTMAGENTA, _LIGHTYELLOW, _BRIGHTWHITE}
  30.  
  31. #define COLOR {{6, 6,14,14,10, 2},\
  32.                {6, 6,14,14,10, 2},\
  33.                {6, 6,14,14,10, 2},\
  34.                {6, 6,14,14,10, 2},\
  35.                {6, 6,14,14,10, 2},\
  36.                {6, 6,14,14,10, 2},\
  37.                {6, 6,14,14,10, 2},\
  38.                {6, 6,14,14,10, 2},\
  39.                {6, 6,14,14,10, 2}}
  40.