home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / programm / libs / easyproc.lha / EasyProcess / Dragons / Dragon.doc < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.8 KB  |  89 lines

  1. Dragon
  2. »»»»»»
  3.     This a growth  experiment  program.  You create a file describing
  4. the cellular divisions of a creature and can then see it grow on your
  5. screen !   The algorithm was taken from a Scientific American  dating
  6. four or five years back.
  7.  
  8.  
  9. Functions
  10. »»»»»»»»»
  11.     Simply  double-click on the icon to start the program.   A little
  12. window will open in a two-colors screen.  Here's a rundown of all the
  13. gadgets and their use:
  14.  
  15.     Load:   Opens a requester so you can load a dragon (.drg file).
  16.     Go:     Starts the dragon's drawing.
  17.     Stop:   Stops the dragon's drawing.
  18.     Clear:  Clears the screen.
  19.  
  20.     Day:    Number of day of growth.
  21.     X:      horizontal starting position (origin is at the left).
  22.     Y:      vertical starting position (origin is at the top).
  23.     Cell:   which cell to start with (put zero (0) there).
  24.  
  25.  
  26.     Couldn't be easier, right ?
  27.  
  28.  
  29. How the &^%$@ do I create a .drg file ???
  30. »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
  31.     Don't panic ! That's easy too,  but getting good result is tough.
  32. The template is:
  33.  
  34.     Number_of_Cell Number_of_Child_per_Cell
  35.  
  36.     X_Move_0 ... X_Move_<Number_of_Cell>
  37.     Y_Move_0 ... Y_Move_<Number_of_Cell>
  38.  
  39.     Cell_0_Child_0 ... Cell_0_Child_<Number_of_Child_per_Cell - 1>
  40.     ...
  41.     ...
  42.     Cell_<Number_of_Cell - 1>_Child_0 ... 
  43.         ... Cell_<Number_of_Cell - 1>_Child_<Number_of_Child_per_Cell - 1>
  44.  
  45.     What does it all mean ? First, you give the program the number of
  46. different cell type and the number of children each cell divides into
  47. each day.   You then give  the X and Y movements of each cell.  After
  48. that  comes the list of divisions,   that is  the type of each of the
  49. children of the cell (from zero (0) upto the number of cell minus one
  50. (Number_of_Cell - 1)).  For example take the followinf file:
  51.  
  52.         3 2
  53.  
  54.         2 -2  0
  55.         1  1 -2
  56.  
  57.         0 1
  58.         1 2
  59.         2 3
  60.  
  61.     This means that the creature has three (3) types of cell and each
  62. cell divides  itself in two cells each day  (the original cells dies,
  63. but that's not important for you).  Then comes the list of movements,
  64. paired vertically for each cell type.  
  65.  
  66.     After that we have the cell genetic code for it divisions. We see
  67. that the cells of type zero (0)  divide in two cells of type zero (0)
  68. and one (1).  Note again that cell numbers begin at zero (0), that is
  69. why the template says `Number_of_cell - 1'.
  70.  
  71.     By specifying  how many days  the original cell grows,  we end up
  72. with a colony that we then use to plot a line  according to the pairs
  73. of movement.  Surprisingly, the right combination of genetic code and
  74. steps create pleasing graphics, many of them fractals.
  75.  
  76.     That's it !  Each number can be separated by spaces, tabs, commas
  77. or returns (line-feed).
  78.  
  79. --
  80.  
  81.   dak@info.polymtl.ca
  82.  
  83.   Pierre Baillargeon
  84.   11555 Joseph-Boyer
  85.   MontrΘal, QuΘbec, Canada
  86.   H1G 4X6
  87.  
  88. --
  89.