home *** CD-ROM | disk | FTP | other *** search
- Fractals-GS
-
- Version 1.1
- 12/15/88
- Documentation updated 1/23/89
- By Steven W. Disbrow
- (c) 1987-89 By EGO Systems.
-
- This Program was written in TML Pascal.
- (c) 1987 TML Systems, Inc.
- Certain portions of this software are copyrighted by TML Systems, Inc.
-
- This version of this program is Public Domain. Feel free to distribute.
-
- WHAT IT DOES:
- Fractals-GS is STILL a program that allows your Apple ][GS to generate pictures
- of the famous Mandelbrot Set. For convenience, pictures may be saved in
- progress and restarted later.
-
- THEORY AND CREDITS:
- Like most Fractal programs in the world, this one is based on one of A.K.
- Dewdney's articles in Scientific American. His work, in turn, is based on the
- work of that IBM guy, Mandelbrot (he's the one that started this mess!). For
- some of the theory and background on this stuff, see any of Dewdney's articles
- (check your library). For some serious brain damage, check out any of
- Mandelbrots books. (Golly, I hope I spelled his name right!)
- There are four reasons that I did this update to Fractals-GS:
- 1) Ed Finney wrote me a letter (USnail) and told me how much he liked the
- program .
- 2) Fred Krol asked me if he could include it as a demo with a new hardware
- product his company is about to release. I said yes.
- 3) Garry M. Delong sent me some MONEY.
- 4) I am getting really sick of my job programming IBM PC's and Mainframes. So
- if any of you Apple ][GS programming shops out there need good people...
-
- BUGS IN THIS VERSION - 1/23/89
- 1) Due to a bug in AppleWorks GS, the documentation file was screwed up.
- This file fixes that.
- 2) The only program bug I know of at this point is the fact that when entering
- a title for a picture via the "NEW" or "MAGNIFY" options, you can only enter
- eleven charaters. To get around this, use the "SAVE AS..." menu selection to
- specify a title for the picture. Or, you could close the picture, rename it
- and then reload it.
-
- FIXES TO BUGS AND 'FEATURES' IN VERSION 1.00:
- 1) I figured out how to get rid of the *&^%& menu bar! (And boy did I)
- 2) Pictures were saved incorrectly in Version 1.00. This made it difficult
- (but not impossible) to use Fractals-GS generated pictures with programs
- such as DeluxePaint ][ and PaintWorks. This has been fixed. In fact, this
- version will fix all of your old pictures if you want it to. For more info
- see the detailed discussion at the end of this document.
- 3) While I claimed that Version 1.00 painted it's pictures in 16 colors the
- more observant of you (i.e. not blind) will no doubt have noticed that
- there were only about 8 colors in any picture that you drew. This was a
- STUPID mistake and it won't happen again. Thanks to Noreen for spotting
- this one.
- 4) Pictures and their data are now stored in 1 file. The use of a '.Pic' and
- a '.Dat' file was a 'Feature' that really began to bug the #&!! out of me
- after about 20 pictures.
- 5) Also included in this version is a Fractals-GS Icon. Copy it into the
- Icons folder of either your startup disk or your Fractals-GS disk.
-
- THE FRACTALS-GS MENU BAR:
- The menu bar in Version 1.10 of Fractals-GS behaves a bit differently than in
- Version 1.00 or just about any other ][GS program. When you first start the
- program, the menu bar appears at the top of the screen just as you would
- expect. After you open a picture (using either "LOAD PIC..." or "LOAD FGS...")
- however, the picture fills the entire screen and the menu bar disappears
- (finally)! To get the menu bar back, move the cursor to the top of the screen.
- To make the menu bar disappear again move the cursor away from the menu bar.
- We here at EGO Systems call this the Phantom Menu Bar (PMB) because we could
- not think of anything dirty to call it. This PMB is why the "FULL SCREEN"
- option has been taken out of the WINDOWS menu. Activating a menu choice by
- using a command key combination will cause the menu bar to appear briefly and
- the command will be carried out. If you close the current picture the menu bar
- reappears and stays put until you open another picture. The only other
- programs that I know of that use a PMB are Instant Music and The King Of
- Chicago (a great game). If anyone else wants to know how to get rid of the
- menu bar, let me know and I'll be glad to tell you.
-
- WHAT'S IN THE MENUS?
-
- APPLE MENU:
- The Apple Menu contains the obligatory "About Fractals-GS..." selection and
- any desk accessories you might have installed.
-
- FILE MENU:
- NEW - This selection brings up a Dialog box that allows you to specify
- information about the picture you want Fractals-GS to draw. The information
- you must specify is:
- X Coordinate and Y Coordinate - These values specify the BOTTOM LEFT HAND
- CORNER coordinates of the picture that Fractals-GS is to draw.
- X Range and Y Range - These range values are added to the X and Y coordinate
- values to specify the range of numbers that the picture is to show.
- Number of Iterations Per Pixel - This specifies the maximum number of times
- that Fractals-GS evaluates each pixel to determine its color. Lower values
- produce faster, less accurate, pictures. Larger values produce more
- detailed pictures, but they take a LONG, LONG, LONG time to finish (You
- have been warned!).
- Title - This can be a 15 character title for the picture.
- When the NEW Dialog box is invoked, a set of default values is shown. These
- defaults specify a picture giving an overview of the Mandelbrot Set. These
- default values are specified in scientific notation. The values you supply
- do not have to be in scientific notation.
- CLOSE - This selection closes the current picture. If the picture has been
- modified, you will be asked if you want to save the changes.
- LOAD PIC - This selection will allow you to load ANY picture that is in the
- standard, uncompressed file format (file type $C1). A picture that is loaded
- in this manner may only be viewed. Both 320 and 640 mode pictures may be
- loaded (640 mode pictures may look a bit odd though...).
- LOAD FGS - This is short for "LOAD a Fractals-GS Picture and its Data".
- If you try to load in a plain picture file, Fractals-GS will give an error
- message and the operation will be aborted. For more information, see the
- discussion at the end of this document.
- SAVE AS - This selection allows you to save an FGS Picture (i.e. a picture and
- its associated data) in progress. The picture can be loaded in later (via
- the LOAD FGS selection) and restarted. The resulting pictures can be loaded
- into DeluxePaint ][ and (I hope) other paint programs. Use the
- "Import File..." option when loading Fractals-GS pictures into AppleWorks GS.
- DELETE - This selection allows you to delete any file.
- RENAME - This selection allows you to rename any file.
-
- EDIT MENU:
- The Edit Menu is not implemented in this version of Fractals-GS.
-
- WINDOWS MENU :
- COORDINATES - The Coordinates selection brings up a small window showing the
- current position of the cursor 'in' the complex plane. The coordinates
- window can be moved anywhere you want. This option can be very handy when
- you are in the Magnify mode (be sure to select Coordinates before you select
- Magnify).
- GET INFO - The Get Info selection tells you all of the important stuff about
- the picture you are currently viewing. The Get Info Dialog now includes a
- 'Total Time' entry. This tells you how much time (in Hours, Minutes and
- Seconds) you have wasted drawing a particular picture. If the picture was
- generated with Version 1.00, the Total Time is set to 0 hours, 0 minutes and
- 0 seconds. Also included in the Get Info selection is the option to print
- out the Info. (Make sure that your printer is ready!)
- MAGNIFY - The Magnify option allows you to "Zoom In" on a portion of an FGS
- picture and generate a new picture. When you select Magnify, the cursor
- changes into a Magnifying Glass (well, that's what it's SUPPOSED to be!).
- To cancel the Magnify option press the escape ("esc") key. See the following
- EXAMPLES section for more information on this option.
- PREFERENCES - The preferences option brings up a dialog box which allows you
- to set the following options:
- 1) Screen Saver - If you turn the screen saver on, the screen will turn
- black when you select an option from the RUN menu (Mandelbrot or Julia).
- This option is included because I figure that most pictures will be run at
- night and your monitor will be off anyway and the pictures get drawn a bit
- faster that way. How much faster? It depends on the number of color breaks
- in the picture.
- 2) Color Cycling Direction - This can be either IN (towards the black areas)
- or OUT (away from the black areas). If neither button is selected, the
- program defaults to OUT.
- 3) Color Cycling Speed - How fast the color cycle goes. Drag the scroll bar
- to set the speed. I can't quite get the other areas of the scroll bar to
- behave correctly just yet (give me a break, I still have Christmas shopping
- to do) so this will have to do for now.
- Click the 'OK' button when you are done. There is no cancel button because
- none of this stuff is really that important, is it?
-
- COLORS MENU:
- SET - This is not yet implemented.
- DEFAULT - This is not yet implemented.
- CYCLE - Select this item to start the colors cycling. If the Coordinates
- window is open, it will be closed and the cycling will begin. While in
- Cycling mode you can set the direction and speed of the cycle using the
- PREFERENCES item or by pressing the following keys:
- 'D' - Pressing 'D' reverses the direction of the cycle.
- '-' - Pressing '-' slows down the speed of the cycle.
- '+' - Pressing '+' increases the speed of the cycle.
- Note that you do not have to have Shift or Caps Lock pressed for these keys
- to work.
- To hide the cursor, press the Space Bar. To get the cursor back, move the
- mouse.
-
- RUN MEN:
- MANDELBROT - The Mandelbrot selection tells Fractals-GS to start drawing a
- picture using the formulas that generate Mandelbrot set pictures. The cursor
- will change into the wristwatch and the picture will start drawing. If you
- have the Screen Saver turned on, the screen will go black. To stop the
- execution of this option, press the escape ("esc") key. When the CURRENT ROW
- is finished being evaluated, Fractals-GS will stop drawing the picture.
- JULIA - This selection is not yet implemented.
-
- SPECIAL KEYS:
- The following keys (upper or lowercase) do the following things in the
- following modes:
- AT ANY TIME -
- 'Space Bar' - Pressing the Space Bar at any time hides the cursor. Move
- the mouse to make the cursor reappear.
- CYCLE MODE -
- 'D' - Pressing 'D' reverses the direction of the cycle.
- '-' - Pressing '-' slows down the speed of the cycle.
- '+' - Pressing '+' increases the speed of the cycle.
- MAGNIFY MODE -
- 'esc' - Pressing 'esc' (the escape key) ends magnify mode.
- RUN MODE -
- 'esc' - Pressing 'esc' (the escape key) ends run mode when Fractals-GS has
- finished evaluating the current line of the picture.
-
- EXAMPLES:
-
- CREATING A NEW PICTURE -
- 1) From the "FILE" menu, select "NEW". A Dialog Box containing default
- values will appear. To edit these values click the mouse in the appropriate
- box and use the arrow keys and delete keys to change the values. When you
- have the values you want, click on the "OK" button and an empty window will
- appear. If you change your mind, click the "Cancel" button.
- 2) Now that you have the empty window, you probably want to get the picture
- started! To do this, simply pull down the "RUN" menu and select the
- "Mandelbrot" item. At this point, Fractals-GS begins to calculate and draw
- your picture. Don't worry if nothing appears immediately, Fractals-GS only
- draws a pixel (or line of pixels) when it crosses a 'color boundary' (you
- should understand what I mean after you see it in action).
- 3) The next step is to RELAX. The ][GS is a VERY slow machine and some of
- these pictures can take upwards of 20 hours to draw!
- 4) What's that you say? You don't want your computer tied up for 20+ hours
- drawing a stupid picture? Neither did I! That's why Fractals-GS has the
- ability to save a picture in progress! To save it however, you must stop
- it. To stop a picture that is being drawn, press the escape ("esc") key.
- Fractals-GS will stop drawing the picture when it reaches the end of the
- current line (this in itself can take up to 30 minutes!).
- 5) To save the picture as it now stands, pull down the "FILE" menu and select
- the "Save As..." item. This brings up a Dialog Box that prompts you for a
- name to save the file under. When you have the name that you want, click on
- the "SAVE" button and Fractals-GS will save your picture and its associated
- data in the file.
- 6) Now that your picture is saved, you can close it and start or load another
- picture, or you can restart the picture you just saved. To restart the
- picture, just select the "Mandelbrot" item from the "RUN" menu.
-
- LOADING AND RESTARTING A SAVED PICTURE -
- 1) From the "FILE" menu, select "LOAD FGS...". This brings up a Dialog Box
- that prompts you for the name of a file to load. When you find the file you
- want, double-click on its name or click on its name once and then click the
- "OPEN" button. Fractals-GS will then load your picture and its data. If
- the Fractals-GS data can not be found in the file, Fractals-GS will tell you
- so and the load operation will be aborted.
- 2) Once you have loaded the picture, you may restart it by selecting the
- "Mandelbrot" item from the "RUN" menu.
- 3) To stop and save the picture, follow steps 4-6 under CREATING A NEW
- PICTURE (above).
-
- USING THE MAGNIFY OPTION -
- 1) Once you have a picture drawn (or almost drawn) you can "Zoom In" on bits
- of it that look interesting. First, load in a previously drawn picture (the
- picture does not need to be completely finished) via the "LOAD FGS..."
- option as described above.
- 2) Pull down the "WINDOWS" menu and select the "Coordinates" item. Please
- note that this step is ENTIRELY OPTIONAL and is not really necessary when
- magnifying a picture.
- 3) Pull down the "WINDOWS" menu and select the "Magnify" item. The cursor
- will change into a "Magnifying Glass". This tells you that you are now in
- Magnify mode.
- 4) Place the cursor at or near the point of interest and press and hold the
- mouse button. While STILL HOLDING DOWN on the mouse button, begin to drag
- the mouse. A box is drawn to show the area that will be magnified. You can
- drag the mouse in any direction. When you have the area you are interested
- in selected, release the mouse button.
- 5) When you have released the mouse button, a Dialog Box identical to the
- "NEW" Dialog Box will appear and show you the specifications for the area
- you have just selected. Change them as you would if you were specifying a
- new picture.
- 6) When the specifications are to your liking, click the "OK" button. The
- picture that you were working with previously will be closed (if changes
- were made to it, you will be asked if you want to save those changes), and a
- new, empty window will be opened (if the Coordinates window was open, it too
- will be closed). This window will eventually contain the drawing of the
- zoomed area. To begin drawing this picture, follow steps 2-6 under CREATING
- A NEW PICTURE (above).
- 7) If you do not like the specifications for the area you have chosen, click
- the "CANCEL" button. This will place you back in Magnify mode and you can
- try again. If you do not want to try again or you did not want to try in
- the first place, press the escape key and Magnify mode will be turned off.
-
- HINTS -
- 1) When in magnify mode try to get the X and Y ranges about the same. If
- they are very different, the resulting picture will look stretched or
- smashed. This is because that, on the ][GS, pixels are taller than they are
- wide. So, when you are boxing in the area you want to magnify, make the
- vertical sides a bit longer than the horizontal sides.
- 2) When in magnify mode and when specifying a new picture, the values for
- the X and Y coordinate represent the lower left hand corner of the picture.
- 3) When you are zooming in really 'deep', make the iteration limit larger.
- Otherwise the picture may end up being all black.
- 4) An iteration limit of 100 is more than enough for really well detailed
- pictures.
- 5) Run these things at night or when you are at work or school. If you live
- in an area that has a lot of electrical storms or power outages, do NOT run
- these things unattended. I'm NOT going to be held responsible for fried or
- otherwise damaged ][GS's. (To quote Dave: "Oh, yeah? How much did you pay to
- get into the show tonight?")
-
- CONVERTING VERSION 1.00 PICTURES TO VERSION 1.1:
- Like I said earlier, Version 1.00 saved it's pictures incorrectly. I have
- corrected this problem so that Version 1.10 saves pictures correctly. Since
- it was not YOUR fault that I screwed up Version 1.00, I have included the
- ability to load Version 1.00 pictures and save them out in the correct
- format. The process to do this is simple:
- 1) Load in the old picture using "LOAD FGS...".
- 2) Save the picture to the same (or a different) name using the "SAVE AS..."
- option.
- 3) Delete the pictures old ".Dat" file.
- You may want to verify that the pictures attributes are intact before
- deleting the ".Dat" file. To do this, close the picture file, rename the
- ".Dat" file to something without ".Dat" on the end of it, reopen the picture
- file and use the Get Info option to verify that the pictures attributes are
- OK.
-
- TECHNICAL NOTE - Version 1.00 pictures are identified via the fact that the
- Auxiliary Type of the ".Pic" file SHOULD be zero (0). Version 1.10 files
- have an Auxiliary Type of 257 (hexadecimal $0101, just like Apple uses to
- specify version numbers of the ][GS tool sets). If you have trouble
- converting Version 1.00 pictures, use a utility such as my NoDOS Desk
- Accessory to check the Auxiliary Type and change it back to 0 if necessary.
- Convert your pictures now. I plan on removing this conversion ability from
- the next version.
- Also, as I stated earlier, pictures and their data are now saved in the same
- file. This means that a Fractals-GS picture file will be 33K. This scheme
- saves directory space since you don't have to have the ".Dat" file along for
- the ride.
-
- I hope you like this program and find it useful. If you have ANY questions,
- criticisms, compliments or CASH you would like to throw my way, please do so. I
- would especially like to hear about ANY bugs you find in it. This was my first
- attempt at a full blown ][GS application and I would REALLY love some feedback.
- My GEnie address is "S.DISBROW", my AppleLink name is "Obnoxio" and my home
- address is:
-
- Steven Disbrow
- 1421 O'Neal Rd.
- Hixson, TN. 37343
-