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

  1. /*   ZOOM.H
  2.      Header file for abstract zooming artwork 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.      Note that this very simple template creates a visually complex image,
  7.      while seemingly simple linear forms like the cartoon mouse require
  8.      much more work and information to express as fractals.  When drawing
  9.      with fractals, richly detailed trees are simpler and easier to create
  10.      than smooth objects like tables and chairs!
  11. */
  12.  
  13. #define NPOINTS 5    /* Number of points on the "parent" polygon */
  14. #define NTRANS  5    /* Number of transformed "children" */
  15. #define NLEVELS 4    /* Number of levels to draw */
  16. #define COUNT 20000  /* Number of dots to paint */
  17. #define CENTERX 320  /* Center of the screen */
  18. #define CENTERY 340
  19. #define SEEDX -66,-334,60,272,66
  20. #define SEEDY -7,100,-120,-27,55
  21.  
  22. /* The tranformations which define the "children" */
  23.  
  24. #define MOVEX 55,104,185,30,-45
  25. #define MOVEY -309,-1,-50,28,-25
  26. #define SIZEX .27,.36,.5,.28,.98
  27. #define SIZEY .27,.27,.18,.21,.5
  28. #define SPINX 4.71,3.88,3.34,4.3,6
  29. #define SPINY 2.48,.93,.39,1.16,6
  30.  
  31. /* The following color definitions are ignored by the SIERP program
  32.    and used only by FRACDRAW.
  33.  
  34.    PALETTE defines the 16-color VGA palette
  35.    COLOR intializes a two-dimensional array with color values:
  36.    each column in the array definition below corresponds to one level
  37.    of detail, and each row corresponds to a "part", or transformation.
  38.    Note that the array only needs to be 6 by 3 for the template defined
  39.    above, but more rows are included in case the user inserts additional
  40.    "parts".
  41. */
  42.  
  43. #define PALETTE {_BLUE, _RED, _GREEN, _CYAN, \
  44.                 _BLACK, _MAGENTA, _BROWN, _WHITE, \
  45.                 _GRAY, _LIGHTBLUE, _LIGHTGREEN, _LIGHTCYAN, \
  46.                 _LIGHTRED, _LIGHTMAGENTA, _LIGHTYELLOW, _BRIGHTWHITE}
  47. #define COLOR {{15,15,15,15},\
  48.                {14,14,14,14},\
  49.                {14,14,14,14},\
  50.                {14,14,14,14},\
  51.                {14,14,14,14},\
  52.                {15,15,15,15},\
  53.                {15,15,15,15}}
  54.