home *** CD-ROM | disk | FTP | other *** search
- ****************************************
- quick.doc -- a very brief and simple example of using Cellsim v2.5
-
- Note that this file is targeted primarily for an audience running Cellsim
- on a color Sun. If you're using a monochrome machine, you'll suffer in
- two ways: 1) the display will not be as rich/meaningful (it will be more
- difficult to represent the information in the array), and 2) the display
- will be very very slow, compared to a color workstation.
-
- In particular, the "heat.m256" rule is pretty bad to look at (as are most
- 256-state rules) when you're running on a black&white machine.
-
- This file is just a very simple example of how to start up Cellsim, load
- in a rule and image, and run; it is intended for those who have never used
- any version of Cellsim before.
-
- We'll go through two parts in our example: a lookup-table rule on the
- Sun, and a computed-function rule on the Sun. For the lookup-table parts,
- we'll use the "life.m2" rule, which is Conway's game of Life. For the
- computed-function part, we'll use the heat-diffusion rule.
-
- First, start up Cellsim, by typing "cell.sun4" (or "cell.sun3", depending
- on what type of machine you're using). This will bring up the simulator,
- using the default size of 64x64 and the 8-state vonNeumann neighborhood.
-
- Click the left mouse-button on the "Rules" button in the control-panel.
- This will tell Cellsim you want to load a rule. You will be prompted for
- the name of the rule to load, in a small popup window in the control panel.
- Type "life.m2" and press return. By default, Cellsim will automatically
- switch into the 2-state Moore neighborhood, when it sees the ".m2" filename
- extension. You should see some messages flash by, and finally should see
- something like "life.m2.Z loaded". If you see the message "no such t-file",
- then Cellsim was not compiled with the appropriate defaults for the various
- directories it needs. You should re-read the "Installation" file to make
- sure you followed all of the instructions.
-
- Now that you've loaded the rule, you need an image to run it on. Press
- the right mouse-button on the "Draw" button in the control-panel, and hold
- it down. That should bring up a menu, from which you can select an item.
- Select "quick random" by releasing the mouse-button over that item. (Note
- that since pressing the left mouse-button selects the first item in a menu,
- you could have just pressed the left mouse-button over the "Draw" button.
- We used the right mouse-button instead so you could become familiar with
- the menu structure). This should draw a random image in the large display
- canvas of Cellsim.
-
- Finally, click the "Run" button with the left mouse-button, and you should
- see life run! You can click the left mouse-button again, anywhere within
- the Cellsim window, to stop running. You can try other things, such as
- using the "zoom in", "zoom out", and "zoom" buttons, to see the effect of
- different magnifications on the update-speed. If things start to calm down
- in the array, you can help them along by "drawing" new active cells in the
- array. To do that, stop running (by hitting the left mouse-button), and move
- the mouse out into the array area. Next, hold down the left mouse-button
- and move the mouse around -- you should see a trail of active cells left
- behind. You can use the middle mouse-button to erase active cells. When
- you have an image you like, you can start running again.
-
- Next, let's run a 256-state computed-function rule. To load the rule,
- once again hit the "Rules" button with the left mouse-button. Enter
- "heat.m256.sun4.o" (or ".sun3.o") as the name of the rule to load. You
- should see some messages about linking, and finally should see a message
- indicating success. Cellsim will automatically switch into the 256-state
- Moore neighorhood when it sees the filename extension ".m256". Now, this
- rule looks better with a rainbow colormap, so let's load that: hit the left
- mouse-button over the "Color" button in the control-panel. When it prompts
- you for a filename, enter "rainbow256.cmap" and press return. The rest of
- the windows on your sun will probably turn purple or some other color when
- you do this.
-
- The "heat.64x" image is a good starting-image for this rule, so click the
- left mouse-button on the "Image" button in the control panel, and enter
- "heat.64x" as the filename. You should see a picture of an irregular blob
- in a uniform background. If you hit "run" now, you should see the system
- evolve. Let it run for at least a few hundred time-steps to see things
- really start happening.
-
- Another interesting starting configuration is a symmetric block. You can
- construct a symmetric initial configuration in just a few steps. First, hit
- the left mouse-button on the "Clear" button in the control-panel, to clear
- the array. Then, select the "Invert" item from the "Planes" menu, using
- the right mouse-button. When it asks you for a plane mask, enter "0xe0"
- (a hexadecimal number, this is 240 in decimal). That will set the entire
- array to a uniform value of 240. Next, you want to punch a symmetric hole
- in this image. Hit the left mouse-button on "Set", and then select
- "general random" from the "draw" menu. This will let you set the parameters
- for the general-random routine. You'll be prompted for several things:
- the origin and size of the rectangle to alter; the percentage of cells to
- change; and the minimum and maximum values to give the cells. You can
- experiment here, but to get something symmetric you might use:
- origin: 25 25
- size: 15 15
- percentage: 100
- min, max: 0 0
- This says to make a 15x15 square, with its upper-left corner at (25,25).
- Change 100% (all) of the cells, and give them a value between 0 and 0
- (so just set them to 0).
-
- That sets the paremeters for general draw. Now, just select "general draw"
- again, without hitting the "Set" button, and those paremeters will be used
- to draw a square in the array. Now, you can hit the "run" button again.
-
- You can exit Cellsim by pressing the left mouse-button on the "quit" button
- in the control panel.
-
- Feel free to experiment with the various features in Cellsim. You probably
- can't do any damage, except if you try to save a file and overwrite something
- (but Cellsim will ask you if you really want to overwrite files). Try
- loading some of the other rules and images that are supplied, to get a feel
- for things.
-
-
-
- /*
- *
- * Cellsim copyright 1989, 1990 by Chris Langton and Dave Hiebeler
- * (cgl@lanl.gov, hiebeler@heretic.lanl.gov)
- *
- * This package may be freely distributed, as long as you don't:
- * - remove this notice
- * - try to make money by doing so
- * - prevent others from copying it freely
- * - distribute modified versions without clearly documenting your changes
- * and notifying us
- *
- * Please contact either of the authors listed above if you have questions
- * or feel an exception to any of the above restrictions is in order.
- *
- * If you make changes to the code, or have suggestions for changes,
- * let us know! If we use your suggestion, you will receive full credit
- * of course.
- */
-
- /*****
- * Cellsim history:
- *
- * Cellsim was originally written on Apollo workstations by Chris Langton.
- *
- * Sun versions:
- *
- * - version 1.0
- * by C. Ferenbaugh and C. Langton
- * released 09/02/88
- *
- * - version 1.5
- * by Dave Hiebeler and C. Langton May - June 1989
- * released 07/03/89
- *
- * - version 2.0
- * by Dave Hiebeler and C. Langton July - August 1989
- * never officially released (unofficially released 09/08/89)
- *
- * - version 2.5
- * by Dave Hiebeler and C. Langton September '89 - February 1990
- * released 02/26/90
- *****/
-