home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff256.lzh / BlitDemons / BlitDemons.doc < prev    next >
Text File  |  1989-10-19  |  3KB  |  58 lines

  1.   BlitDemons by Walter Strickler  V1.0  10/1/89
  2.  
  3.   This program and all its source code are in the public domain and are
  4. freely distributable and usable for any non-commercial purpose, so long
  5. as I get credit where credit is due.
  6.  
  7.   The following files were originally distributed:
  8.         
  9.              BlitDemons.doc          This file.
  10.              BlitDemons.doc.info     The icon for this file.
  11.              BlitDemons              The executable.
  12.              BlitDemons.info         The icon.
  13.              bdemon.h                The main include file.
  14.              bdemon.c                The main, self-compiling source.
  15.              bdintui.c               Intuition stuff.
  16.              bdblit.c                Blitter stuff.
  17.              BDWin.c                 Produced by PowerWindows.
  18.              bdemon.with             The 'with' file for Blink.
  19.              BDemon.PW2IF            PowerWindows v2.0 Int. file.
  20.              inclintui.h             Includes Intuition.h for BDWin.c
  21.  
  22.   This program is a port of a program by Loren Blaney which runs under
  23. Apex, an unknown Amiga operating system.  It is based on the cellular 
  24. automaton called 'Demons' described in the August, 1989, issue of Scientific 
  25. American.  
  26.  
  27.   The algorithm for demons, in case you missed the article, is as follows.
  28. Each pixel on the screen represents a 'cell'.  A cell may have any one of 
  29. 16 values, each one being displayed as a different screen color (actually 
  30. this number is arbitrary, but 16 is a good choice).  Each cell is set to a 
  31. random value.  Then, for each generation, if a cell has a value that is one 
  32. less than that of any of its 4 orthogonal neighbors, the cell is set to the
  33. value of that neighbor.  The values wrap around, so that the value 0 is 
  34. considered one greater than 15.
  35.  
  36.   There are four distinct phases.  The first phase is the debris phase and
  37. is characterized by the random garbage that is present at the start.  The
  38. second phase is the droplet phase, wherein waves of color wash back and
  39. forth across 'droplets'.  The third stage is the defect stage.  It is 
  40. characterized by a few isolated spirals.  The spirals that survive are 
  41. called demons, and they inhabit the final steady-state phase.
  42.  
  43.   It is not my fault that BlitDemons busy-waits.  This is usually inexcusable
  44. in an Amiga program, but it is actually caused by a system routine that
  45. busy-waits:  WaitBlit().  It's really a shame, since this program should
  46. require only a small portion of the CPU.  As it is, it hogs as much of it as
  47. it can get.
  48.  
  49.   I may be reached at the following addresses:
  50.  
  51.                     US Mail:  Walter Strickler
  52.                               1410 19th St #6
  53.                               Boulder, CO 80302
  54.  
  55.                     Ma Bell:  (303) 443-0493
  56.  
  57.                     BIX:      wstrick
  58.