home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / xmfract14 / xmfract_readme.txt < prev    next >
Text File  |  1995-06-20  |  82KB  |  1,585 lines

  1.  
  2. ###############################################################################
  3.  
  4.         xmfract version 1.4 - a freeware fractal generation program.
  5.           Copyright (C) 1995 Darryl House and the Stone Soup Group.
  6.  
  7.     This program is free software; you can redistribute it and/or modify
  8.     it under the terms of the GNU General Public License as published by
  9.     the Free Software Foundation; either version 2 of the License, or
  10.     (at your option) any later version.
  11.  
  12.     This program is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15.  
  16.     Some source code for this program is covered by additional copyrights.
  17.     See the copyright notices in the source files for more information.
  18.  
  19.     You should have received a machine-readable and/or hard copy of the
  20.     GNU General Public License along with this program; if not, write to the
  21.     Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22.  
  23. ###############################################################################
  24.  
  25.   Please carefully read the "COMPILATION AND INSTALLATION" section below
  26.   for important information about the configuration options for your site.
  27.  
  28.   This is xmfract 1.4, an X11R[5/6] Motif program based upon a
  29.   popular DOS freeware program named Fractint. It is a true graphic
  30.   user interface quite different from that program.
  31.  
  32.   The program will calculate, display and manipulate over 90 discrete
  33.   fractal types with very fast algorithms. Other features include zooming,
  34.   animation (color cycling), color editing, spherical projection, and an
  35.   amazing wealth of parameters. There are too many features to list here.
  36.  
  37.   Also included are dozens of ancillary files such as color map files,
  38.   parameter files, formula files, and an extensive on-line help system.
  39.  
  40.   System requirements:
  41.     The program is known run to under the following operating systems:
  42.  
  43.       OSF/1 (with Motif 1.2 or later)
  44.       Solaris 2.x (with Motif 1.2 or later)
  45.       Linux 1.94 or later (with XFree 3.1 and Motif 1.2 or later)
  46.       HPUX (with Motif 1.2 or later)
  47.       AIX (with Motif 1.2 or later)
  48.  
  49.     Motif 1.2 or later is required for this program. Motif 1.1 will
  50.       not work with this program.
  51.  
  52.     The program has been tested under the following window managers:
  53.       mwm olwm olvwm twm tvtwm vuewm
  54.  
  55.     Required utilities:
  56.       The GNU utility "gunzip" and the Unix or GNU utility "tar" are
  57.         required to unpack the archive.
  58.  
  59.     Recommended utilities:
  60.       The GNU C compiler "gcc", while not required, is recommended.
  61.  
  62.   Disk requirements:
  63.     2MB of space is required to download the source archive.
  64.     The compiled program (stripped and optimized) requires 1MB of space.
  65.     The ancillary files (see below) require 1.5MB of space.
  66.  
  67.     The amount of space required to compile the program will vary,
  68.     depending on the compiler used, the compilation flags that
  69.     are set, and whether the ancillary files are stored in the
  70.     same file system as the source (the default configuration).
  71.     About 20MB of space is recommended for the most convenient
  72.     method of compilation and storage.
  73.  
  74.   Bugs fixed and enhancements since version 1.1:
  75.  
  76.   - Added GNU "autoconf" capability with configuration files and scripts.
  77.   - All dialogs have been extensively generalized. There are now no
  78.       specific widget positioning or sizing parameters, allowing the
  79.       use of any font or window manager.
  80.   - Added platform-dependent conditions for some system library functions
  81.       and definitions.
  82.   - Deleted the call to MrmInitialize() and deleted the reference to
  83.       the Mrm library in the Makefiles.
  84.   - Conditionally compile and/or include the Xmu library and calls
  85.       to register the event handlers for "editres".
  86.   - The zoom box problems reported in the previous version have been fixed.
  87.   - The two pop-up menus have been replaced by option menus.
  88.   - Fixed various widget heirarchy and memory allocation errors.
  89.   - Function prototypes have been generalized.
  90.   - varargs vs. stdarg handling has been generalized.
  91.   - Vastly enhanced the color editor.
  92.   - Added signal handling for Linux platforms.
  93.   - Added a Fractint-like 'z' key function for parameters.
  94.   - Added an Image Refresh Rate option.
  95.   - Added a parameter forwarding option.
  96.   - Added the Fractint zoombox pan capability.
  97.   - Added a Fractint-like color editor freestyle capability.
  98.   - Added palette randomization functions and an associated dialog.
  99.   - Enhanced the handling of formula, ifs, and lsystem fractal types.
  100.   - Enhanced the initialization file and environment variable handling.
  101.   - Updated this file and the on-line help files.
  102.   - Added more preset window sizes.
  103.   - Fixed all reported bugs.
  104.   - Added an icon.
  105.  
  106.   Table of Contents:
  107.  
  108.   1: COMPILATION AND INSTALLATION
  109.   2: USER INFORMATION
  110.   3: COMMAND LINE OPTIONS
  111.   4: GETTING STARTED
  112.   5: DEVELOPER INFORMATION
  113.   6: BUGS
  114.   7: CORRESPONDENCE
  115.   8: TO-DO LIST
  116.   9: GNU GENERAL PUBLIC LICENSE
  117.  
  118.   ===========================================================================
  119.   1: COMPILATION AND INSTALLATION
  120.  
  121.   Unpack the archive with gunzip and tar:
  122.  
  123.     prompt% gunzip xmfract.beta.tar.gz
  124.     prompt% tar xvf xmfract.beta.tar
  125.     prompt% rm xmfract.beta.tar
  126.  
  127.   This will leave a directory named xmfract_1.4 that contains the
  128.   source archive and configuration files.
  129.  
  130.   Also included are dozens of ancillary files used at runtime
  131.   (*.par, *.frm, *.map, etc.), and a directory containing the on-line
  132.   help files.
  133.  
  134.   Type "man editres" for more information about editres. If it is
  135.   not installed on your system, it is of no concern to this program.
  136.  
  137.   Editres is a resource editor that is useful for debugging and
  138.   figuring out the names of specific widgets, which is also handy
  139.   for customizing the X resource file.
  140.  
  141.   All you need to know about your system is where the Motif include
  142.   and library directories are, and whether you have (and wish to use)
  143.   the Xmu library for editres. Autoconf will try to figure out the rest.
  144.  
  145.   By default (configurable -- these are just defaults):
  146.     The program will be installed in /usr/local/bin
  147.     The ancillary files will be installed in /usr/local/xmfract
  148.     The help files will be installed in /usr/local/xmfract/help
  149.  
  150.   TO CONFIGURE THE PROGRAM FOR YOUR SITE:
  151.  
  152.   The pertinent options for "configure" are:
  153.     (type ./configure -help for syntax information and more options)
  154.  
  155.     --prefix (or make install prefix=<path>)
  156.         This changes the /usr/local prefix for everything.
  157.  
  158.     --exec-prefix (or make install exec_prefix=<path>)
  159.         This changes just the /usr/local prefix for the xmfract executable.
  160.  
  161.        "make install bindir=<path>" has the same effect -- the program
  162.           will be installed as <path>/xmfract
  163.  
  164.        "make install libdir=<path>" changes the installation path for the
  165.           ancillary files. They will be installed in <path> and the help
  166.           files will be installed in <path>/help
  167.  
  168.        "make install helpdir=<path>" will change the path to the help files.
  169.  
  170.     --with-editres
  171.         Enables the editres protocol and includes the Xmu libraries.
  172.  
  173.     --with-motif="motif_includes=DIR motif_libraries=DIR"
  174.         Tells the Makefiles where it can find the Motif directories.
  175.  
  176.         For example, on a system where Motif is installed in the
  177.         directory /usr/lib/motif_1.2, then motif_includes=DIR becomes
  178.         motif_includes=/usr/lib/motif_1.2/include
  179.  
  180.      Please note that there are a puzzling combination of dashes,
  181.      underscores and quotation marks in the arguments -- take care
  182.      to get it correct, and use full path names, not relative paths.
  183.  
  184.   Type "./configure [options]"
  185.  
  186.   Type "make install [options]"
  187.  
  188.   If you are using a BSD compiler, you will probably get a
  189.     gazillion warnings about "& before array or function" that
  190.     will be safely ignored.
  191.  
  192.   Initialization:
  193.  
  194.   1. - Xmfract may obtain initialization information from many sources,
  195.        including the command line, the environment, and two different
  196.        names for initialization files. Choose whichever of these options
  197.        is most convenient for you:
  198.  
  199.          a: If you use this method, no modification of any initialization
  200.             file is necessary (yet not disallowed). Set an environment
  201.             variable XMFRACTDIR or FRACTDIR that points to wherever you
  202.             have placed the ancillary files (*.map, *.par, etc.).
  203.             Then rename the file "xmfract.ini" to ".xmfractrc" (note the
  204.             leading "dot") and place it in your home directory.
  205.  
  206.          -- or --
  207.  
  208.          b: Add a line to the top of the "xmfract.ini" that points to
  209.             wherever you have placed the ancillary files. This must be
  210.             a full-pathed name of a directory (relative paths or variables
  211.             are not (yet) supported). i.e. fractdir=/usr/local/xmfract
  212.             Note that there are no spaces before or after the "=", nor
  213.             is the path surrounded by quotation marks. Place this file
  214.             in your home directory or the directory from which you
  215.             intend to run xmfract. If it is in your home directory,
  216.             you may rename the file as .xmfractrc, or leave it named
  217.             xmfract.ini -- both forms are supported.
  218.  
  219.        In either case, if you have placed the help files in any directory
  220.        other than <fractdir>/help, then add a line to whichever file you
  221.        are using for initialization (xmfract.ini or .xmfractrc) that
  222.        points to wherever you have placed the help files.
  223.  
  224.   2. - The program contains internal default fallback X resources, so an
  225.        app-defaults file is not necessary, but it may be useful for
  226.        customizing the program's appearance and behaviour. If desired,
  227.        rename the X resource file from Xmfract.ad to Xmfract and place it
  228.        where your system's resource files are stored, or your home directory.
  229.        Review the comments at the top of the resource file for more
  230.        information about customizing resources.
  231.  
  232.        For Linux systems, this will probably be required because XFree has
  233.        a problem dealing with tear-off menus in many versions of Motif.
  234.        Set the tearOffModel resource to TEAR_OFF_DISABLED for Linux systems,
  235.        if you experience problems with tear-off menus. Xmfract does not need
  236.        to be re-compiled when any resource is changed.
  237.  
  238.  
  239.   2: USER INFORMATION
  240.  
  241.   This documentation assumes that the user has read "Fractal Creations
  242.   Second Edition", by Tim Wegner and Bert Tyler, published (1993) by
  243.   Wait Group Press, 200 Tamal Plaza, Corte Madera, CA 94925. If you
  244.   have not read this most excellent book, please do so. The book will
  245.   give you many insights into the creation and inner workings of fractals
  246.   in addition to the user's guide to Fractint, the original DOS program
  247.   that this version of xmfract is based upon.
  248.  
  249.   Ken Shirriff has ported Fractint to UNIX, using an interface almost
  250.   identical to the original Fractint. That version of the program is
  251.   named Xfract and has several advantages over this version, and may
  252.   be preferable for many users. Those differences include the ability to
  253.   use the disk video mode, and that the interface has the same look-and-feel
  254.   of the original Fractint, among many others.
  255.  
  256.   Xmfract differs from Fractint and Xfract in many ways. The first and
  257.   most obvious of these is the graphic user interface. Many of the same
  258.   keystrokes will invoke familiar menus, and some other keystrokes are
  259.   changed or non-existent. Please browse each of the menus on the menu
  260.   bar to become familiar with their contents.
  261.  
  262.   The letter to the right of the menu item indicates the letter which may
  263.   be typed to invoke that menu item. This is called a menu item accelerator.
  264.   The menu does not need to be displayed to invoke the item with the
  265.   accelerator letter.
  266.  
  267.   Xmfract supports tear-off menus, if the user has not specifically
  268.   prevented it by an entry in the resource file. Menus may be "torn off",
  269.   or posted in windows of their own (separate from the main window), by
  270.   selecting the dashed line at the top of the menu. To dismiss any torn-off
  271.   menu, press the 'Esc' key while the pointer is in the menu window.
  272.  
  273.   An extensive on-line help system is installed. Browse the help files
  274.   from the main menu's "Help" button or press the "Help" button in
  275.   any of the various dialogs that will be displayed during the
  276.   course of the program. A good place to start with the on-line help
  277.   system is the main index. Select "About the Main Menu Bar" to help
  278.   you get started.
  279.  
  280.   For a detailed description of a specific fractal formula, select the
  281.   topic "Summary of Fractal Types" from the help index, or highlight a
  282.   fractal type from the fractal type selection dialog, then press the help
  283.   button in the dialog to get more information about that type.
  284.  
  285.   In general, pressing the "Done" button in a dialog will accept the
  286.   values displayed unless an error is detected. Pressing the "Reset"
  287.   button will reset the values to those that were in effect when the
  288.   dialog was invoked. Pressing the "Default" button will set the values
  289.   to preset default values. Pressing the "Cancel" button will cause the
  290.   dialog to disappear without changing any values. Pressing "Apply" will
  291.   accept the values displayed unless an error is detected, and not make
  292.   the dialog disappear.
  293.  
  294.   Other specialized buttons, and menus are available in some dialogs.
  295.   Use the on-line help system to guide you through the maze of fractal
  296.   parameters.
  297.  
  298.   As of this writing, the zoom box functions available are move, pan,
  299.   and stretch.
  300.  
  301.   If the user has drawn a zoom box on the screen and presses the "d"
  302.   key (or selects "Create image" from the "Image" menu), the program
  303.   assumes that the user wishes to zoom in on the selected area.
  304.  
  305.   Selecting Pan from the Zoom menu will draw a zoom box the full size
  306.   of the screen. Moving this zoom box around on the screen will cause
  307.   the program to select the area inside the zoom box and fill the
  308.   screen with it. This effectively "pans" the image on the screen. The
  309.   portion of the visible image that has been calculated will not be
  310.   recalculated, just re-displayed. Any portion of the image that was
  311.   not visible before the pan will be calculated and displayed.
  312.  
  313.   Moving the zoom box means moving it around on the screen without
  314.   changing its size or shape. Draw a zoom box, then press the left
  315.   mouse button down when the pointer is inside the zoom box. The outline
  316.   of the zoom box will change to a dotted line and the cursor will change
  317.   to a cross-arrow. While holding the mouse button down, move the cursor
  318.   around the screen and the outline of the zoom box will follow the mouse
  319.   pointer. When the zoom box is positioned where you want it, release the
  320.   mouse button and the outline of the zoom box will revert to a solid line.
  321.   All done. Note that if you press the mouse button down outside the zoom
  322.   box, the program assumes that you want to draw a different zoom box, and
  323.   cancels the current zoom box, and any move or stretch operation that is in
  324.   effect. Also note that if you draw a zoom box that is too small (the
  325.   minimum size is 25 x 25 pixels), the box will not be drawn. This also is
  326.   a short cut for canceling a zoom box. Simply click the left mouse button
  327.   when the pointer is outside the zoom box and the zoom box and any pending
  328.   functions will be canceled. If you move the zoom box so that the outside
  329.   edge of the box is outside the visible window, the area outside of
  330.   the visible window will not be included in the zoomed in or out image.
  331.  
  332.   Stretching the zoom box means changing its shape. The zoom box may be
  333.   stretched vertically, horizontally, or diagonally. After drawing a
  334.   zoom box on the screen some additional lines will appear on the zoom
  335.   box. The boxes that are created by these lines are zoom box "handles".
  336.   Press the left mouse button down in one of the handles and the cursor
  337.   will change to the appropriate arrow (either up, down, left, right, or
  338.   toward one of the four corners). Hold the mouse button down and move the
  339.   cursor and the zoom box will grow and/or shrink in the desired direction.
  340.   Experiment with changing the shape in several directions to become
  341.   familiar with the stretching operation.
  342.  
  343.   Options may be specified on the command line or in a parameter file
  344.   (<filename>.par) or in a startup command file named "$HOME/.xmfractrc"
  345.   or "./xmfract.ini".
  346.  
  347.   I have used dozens of ".par" files in this program and have found none
  348.   that will confuse xmfract. In addition, all of the "*.map" (color map),
  349.   "*.l" (L-System definition), "*.frm" (formula definition), and ".ifs"
  350.   (IFS definition) files that I have used have performed as expected.
  351.  
  352.   Arguments that are not understood by xmfract are displayed in
  353.   a dialog, and the rest of the arguments are processed normally.
  354.   Dismiss the dialog and generate the image as usual, and you
  355.   will probably find that the image appears as expected. If not,
  356.   edit the offending line from the parameter file or command line
  357.   and try again.
  358.  
  359.   Some new options may be of note - the author credits screen that pops
  360.   up when the program lifts off may enabled or disabled with the
  361.   command-line or startup-file option "creditscreen=". An xmfract.ini
  362.   entry of "creditscreen=no" will prevent the credits screen from
  363.   popping up when the program starts. Of course, the credits may be
  364.   viewed at any time by selecting "Display authors window" from the
  365.   "Authors" menu (or by hitting the "w" key) regardless of the
  366.   creditscreen option. The copyright and legal disclaimer may also
  367.   be disabled with a command-line or startup-file option named
  368.   "disclaimer=". The disclaimer may popped up again by invoking the
  369.   "Version information" item in the "Authors" menu.
  370.  
  371.   Experienced xmfract users may want to set the "verbose=" option. This
  372.   option (sometimes in concert with the "overwrite=" option) when set
  373.   set to "verbose=yes" will prevent some of the more obvious dialogs
  374.   from being presented. For example, the program usually asks the user
  375.   to confirm creation of image or parameter files, or whether to resize
  376.   a window to fit an image to be read. These messages and some other
  377.   dialogs will not appear when this option is set to "yes".
  378.  
  379.   Setting the "overwrite=" option to "overwrite=yes" will cause the
  380.   program to automatically overwrite existing files (such as parameter
  381.   files or images), without asking the user -- if the verbose option
  382.   is not set to "yes".
  383.  
  384.   I recommend that you become familiar with the dialogs that appear
  385.   periodically during the course of this program before setting the
  386.   verbose option to "no" or the overwrite option to "yes". That will
  387.   prevent you from becoming confused by unexpected behavior from xmfract.
  388.  
  389.   A new menu item has been added to allow the user to explicitly set
  390.   the size of the main window. The default size is 640 x 480 pixels,
  391.   and the maximum size is 2048 x 2048. Only the size of the menu bar is
  392.   taken into account when calculating the maximum size for a fully
  393.   visible image (the window manager decorations, such as borders,
  394.   etc., are not considered). That means that if you resize the window
  395.   to the maximum size for a fully visible image, the borders may be off
  396.   the screen, but the image canvas will be fully visible. In addition,
  397.   if the user elects to load an image that was created in a size that
  398.   is different from the current window size, the user is given the option
  399.   to resize the window to fit the new image.
  400.  
  401.   Press the left mouse button when the pointer is in the option menu and
  402.   a list will appear that allows the user to select from several
  403.   preconfigured window sizes, including the maximum size for a fully
  404.   visible image. Pressing the "Default" pushbutton will set the window
  405.   to the pre-selected default size of 640 x 480 pixels. The normal
  406.   aspect ratio for the program (the ratio of width to height) is 4:3,
  407.   and the program figures out the aspect ratio of the root window on
  408.   your display and configures several preset values in that aspect
  409.   ratio as well. To resize the window to any of these values, select
  410.   the desired menu item.
  411.  
  412.   A note about color - if you are using a display that allows only one
  413.   hardware color map (this is by far the most common type of color display)
  414.   xmfract will, by default, attempt to allocate as many color cells as
  415.   possible that results in a total number of colors which is a power of two.
  416.   This results in a color map that will contain 256, 128, 64, 32, 16, 8, 4,
  417.   or 2 colors, depending on how many colors are already allocated by the
  418.   window manager and other clients running on this display. To find out how
  419.   many colors xmfract has currently allocated, use the <tab> display ("Info
  420.   about image" under the "Misc" menu). The "Video:" line in this dialog will
  421.   display the current width and height of the main window and the number of
  422.   colors that xmfract has currently allocated.  For example, the line
  423.   "Video: 640x480x128 xmfract mode" means that the main window is 640 by 480
  424.   pixels and that xmfract has allocated 128 colors. To use all 256 colors
  425.   in this type of display, use the -private command line option. This will
  426.   cause color flashing (rather rude, eh?), but it is the only method for
  427.   displays that allow only one color map.
  428.  
  429.   Starfields may be generated only on displays where xmfract has allocated
  430.   all 256 colors, and the images that are generated with the *.par files
  431.   that are supplied with the program have all been generated with 256 color
  432.   displays. To display an image that appears as the artist has visualized it,
  433.   use a 256-color mode when invoking the related parameter file or loading
  434.   the image file.
  435.  
  436.   I have implemented a different color palette editor -- experienced
  437.   Fractint users will find it quite different, yet the same in some
  438.   respects. The active vs. inactive color registers have completely
  439.   different meanings than those in Fractint.
  440.  
  441.   To use the editor, select "Edit current color palette" from the "File"
  442.   menu, or press the "e" key. Two color registers are displayed at the
  443.   top of the dialog, and the color palette will be displayed below.
  444.   Only the color in the active register may be edited. Colors in the
  445.   inactive register will follow the mouse (until a range is selected,
  446.   see help). The inactive register will display the color that is under
  447.   the mouse pointer if the pointer is in the editor dialog or in the image
  448.   window. You may select a color to edit by clicking the left mouse button
  449.   in the desired color in either window. If you click in the image window,
  450.   a small circle is drawn on the image to remind you where you clicked.
  451.   A white dashed line is drawn around the selected color box in the
  452.   editor palette, and the selected color plus it's red, green, and blue
  453.   component values are displayed in the active register scale widgets.
  454.   Moving the bars on the scales will change the color.
  455.  
  456.   For range selection, the palette rectangles are numbered from left
  457.   to right, and top to bottom. That is, the upper left corner is the
  458.   lowest numbered rectangle and the bottom right is the highest.
  459.   To select a range of colors to operate upon, select the start of the
  460.   range with the left mouse button. Again, a white dashed line is drawn
  461.   around the selected color box in the editor palette. Select the end of
  462.   the range by pressing the center mouse button down in the desired
  463.   color. That box will now be surrounded by a solid white line,
  464.   and the range operation menu items will be enabled (not greyed
  465.   out). The inactive register will no longer follow the mouse. Select the
  466.   desired range operation from the menu. You may get the inactive register
  467.   color to follow the mouse again by canceling the range selection from
  468.   the range sub-menu. When selecting a range to copy, it does not matter
  469.   whether the range is selected with the active register as the low end
  470.   of the range or whether the inactive register is the low end. In either
  471.   case, the saved range will be loaded into memory from low to high.
  472.   When pasting the range, the order of the selected ranged becomes
  473.   important. The range will be pasted in a forward direction if the
  474.   active register is the low end of the range, and will be pasted in a
  475.   reverse order if the inactive register is the low end of the range.
  476.  
  477.   See the help topic "Color Editor Commands" for an example range
  478.   editing session.
  479.  
  480.   Experiment with the palette editor to become familiar with these
  481.   operations. Hands-on experimentation will make these operation much
  482.   more clear because you can see the colors change, rather than just
  483.   numbers in the crude boxes used as an example in the help files...
  484.  
  485.   In addition, the color cycling operations are available. Start or stop
  486.   the color cycling by pressing the "c" key. Colors may be cycled if you
  487.   have completed creation of an image and/or if the palette editor is
  488.   displayed.
  489.  
  490.   You may change the speed of the color cycling by pressing the keypad
  491.   up and down arrow keys or the cursor up and down arrow keys, whichever
  492.   is appropriate for your keyboard. The keypad "+" and "-" keys and the
  493.   alphabetic "+" and "-" keys will cause the palette cycle to change
  494.   direction. Pressing the "+" and "-" key when not color cycling will
  495.   cause the palette to rotate one step in the indicated direction. The
  496.   keypad "Enter" key will randomize portions of the palette while the
  497.   palette is cycling.
  498.  
  499.   A command-line or initialization file parameter named rate=nnn is
  500.   also available. This value controls the rate at which the screen
  501.   will update during image calculation. Valid values are 1 -> 100.
  502.   Lower numbers will cause the screen to update less frequently,
  503.   thereby (hopefully) reducing network overhead in situations
  504.   where net traffic is critical. This value may also be changed when
  505.   the program is running by selecting "Refresh Rate..." from the
  506.   "Image" menu.
  507.  
  508.   Orbit windows and Julia Inverse method displays are toggled on and off
  509.   by pressing the space bar (for Julia Inverse) or "o" key (for an orbits
  510.   window) after an image is complete. The operation of these functions is
  511.   similar to the same functions in Fractint. When the orbits window is
  512.   displayed, the line and/or circle modes may be toggled with upper-case
  513.   "L" or "C", respectively. The upper case is required to resolve a
  514.   conflict where the the lower-case "l" and "c" are menu item accelerator
  515.   letters (load color map and cycle color palette).
  516.  
  517.   There are a maximum of 10 parameters sets that are automatically logged
  518.   by the program. You may re-create a previously created image by using
  519.   the "Restore" menu.
  520.  
  521.   Some of the commands that were necessary in Xfract are no longer
  522.   necessary in xmfract. For example, the -slowdisplay, -simple, and -fast
  523.   options are not required and therefore not implemented. The program
  524.   will silently ignore command-line options or parameter-file entries
  525.   that are valid for Fractint or Xfract that are included in xmfract
  526.   for backward compatibility purposes only.
  527.  
  528.   The user may reset the color, clear the screen, or reset the fractal
  529.   parameters from a menu selection. One may also choose to reset all of
  530.   the above from the same menu.
  531.  
  532.  
  533.   3: COMMAND-LINE OPTIONS
  534.  
  535.   Some of these are detailed in the previous section, and are listed here
  536.   as well. All of these options, except those that are preceded with a
  537.   dash (-) may be entered either on the command line, or in an
  538.   initialization file, or in a parameter file. The most common or
  539.   recommended locations for these options are listed here and in the
  540.   on-line help files (see "Command Line Parameters" in the on-line help).
  541.  
  542.   Xmfract accepts command-line parameters that allow you to start it with a
  543.   particular mode, fractal type, starting coordinates, and just about
  544.   every other parameter and option.
  545.  
  546.   These parameters can also be specified in a ~/.xmfractrc file, to set them
  547.   every time you run xmfract.
  548.  
  549.   They can also be specified as named groups in a <name>.par (parameter) file
  550.   which you can then call up while running xmfract by using the <@> command.
  551.  
  552.   In all three cases (command line, ~/.xmfractrc, and parameter file) the
  553.   parameters use the same syntax, usually a series of keyword=value commands
  554.   like overwrite=no. In each case below, values between "<" and ">" are
  555.   required arguments for the specified command, and values between "[" and "]"
  556.   are optional arguments for the specified command. Do not type any of these
  557.   characters in the command unless otherwise directed.
  558.  
  559.   The command-line only parameters that may be set are:
  560.  
  561.     -display <hostname>:<screen>.<display>
  562.        Specifies the X11 display to use.
  563.  
  564.     -share
  565.        Shares the current display's colormap.
  566.  
  567.     -private
  568.        Allocates the entire colormap (i.e. more colors).
  569.  
  570.     -geometry <WxH[{+-X}{+-Y}]>
  571.        Changes the geometry of the initial image window.
  572.  
  573.     makemig=<x/y>
  574.        Create a multi-image gif file "x" images wide by "y" images high.
  575.        See "Creating Multi-image GIF files" below for more information.
  576.  
  577.  
  578.   These commands and options may be specified on the command line or in
  579.   an initialization file named "~/.xmfractrc":
  580.  
  581.     fractdir=<directory>
  582.        Specify where the ancillary files are stored.
  583.        This should be the first line in the initialization file.
  584.  
  585.     helpdir=<directory>
  586.        Specify where the ancillary files are stored.
  587.  
  588.     exitnoask=<yes|no>
  589.        Exit with or without asking for confirmation.
  590.  
  591.     creditscreen=<yes|no>
  592.        Display the authors screen when the program starts.
  593.  
  594.     disclaimer=<yes|no>
  595.        Display the disclaimer message when the program starts.
  596.  
  597.     verbose=<yes|no>
  598.        Set the level of verbosity in the program.
  599.  
  600.     overwrite=<yes|no>
  601.        Automatically overwrite existing files without confirmation.
  602.  
  603.     map=<mapfilename>
  604.        Specify a color map file at startup.
  605.  
  606.     rate=<number>
  607.        Specify the screen refresh rate as a percentage. A lower value
  608.        is slower and results in less overhead on networked machines,
  609.        and usually results in faster fractal calculations, due to the
  610.        reduced number of graphics function calls. The valid range for
  611.        this value is 1 -> 100.
  612.  
  613.     undo=<number>
  614.        Specify the number of color editor commands that may undone.
  615.        A zero means that no undos will available. This is useful on
  616.        machines that have a limited amount of memory available.
  617.        The valid range for this value is 0 -> 32767. The default is 8192.
  618.  
  619.  
  620.   These options are most commonly specified in a parameter file:
  621.  
  622.     filename=<filename>
  623.       Process commands from a file.
  624.  
  625.     map=<@mapfilename>
  626.       Use 'filename' as the current color map.
  627.  
  628.     reset[=<version>]
  629.       Causes xmfract to reset all calculation related parameters
  630.       to their default values.
  631.  
  632.     colors=<@mapname|colorspec>
  633.       Reads in a replacement color map from 'filename'. The 'colorspec'
  634.       is rather long (768 characters for 256 color modes), and its syntax
  635.       is not documented here. This form of the 'colors=' command is not
  636.       intended for manual use - it exists for use by the 'b' command when
  637.       saving the description of a nice image.
  638.  
  639.     type=<fractal>
  640.       Selects the fractal type to calculate. The default is type "mandel".
  641.  
  642.     inside=<nnn|bof60|bof61|zmag|attractor|epscross|startrail|period>
  643.       Set the color of the interior; for example, "inside=0" makes the M-set
  644.       "lake" a stylish basic black. A setting of -1 makes inside=maxiter.
  645.       Three more options reveal hidden structure inside the lake. Inside=bof60
  646.       and inside=bof61, are named after the figures on pages 60 and 61 of
  647.       "Beauty of Fractals".
  648.  
  649.     fillcolor=<color>
  650.       Sets a block fill color for use with boundary tracing and tesseral
  651.       calculation mode options.
  652.  
  653.     finattract=<yes|no>
  654.       Look for finite attractor in julia types.
  655.  
  656.     function=<func[,func,func,func]>
  657.       Allows specification of transcendental functions with fractal types
  658.       which use variable functions. Valid values are:
  659.         sin, cos, tan, cotan, sinh, cosh, tanh, cotanh,
  660.         exp, log, sqr, recip (1/z), ident (identity),
  661.         conj, flip, zero, and cosxx (cos with bug).
  662.  
  663.     outside=<nnn|iter|real|imag|mult|summ>
  664.       Fractal exterior color options.
  665.  
  666.     maxiter=<iterations>
  667.       Maximum number of iterations {0-32767} (default = 127).
  668.  
  669.     passes=<1|2|g|b|t>
  670.       Select single-pass, dual-pass, solid-guessing, boundary-tracing,
  671.       or the tesseral drawing algorithms.
  672.  
  673.     cyclerange=<min/max>
  674.       Range of colors to cycle (default 1/255).
  675.  
  676.     ranges=<ranges=nn/nn/nn/...>
  677.       Ranges of iteration values to map to colors.
  678.  
  679.     potential=<potential=nn[/nn[/nn[/16bit]]]>
  680.       Continuous potential.
  681.  
  682.     params=params=<xxx[/xxx[/...]]>
  683.       Begin with these extra parameter values.
  684.  
  685.     miim=<[depth|breadth|walk]/[left|right]/[xxx/yyy[/zzz]]>
  686.       Params for MIIM julias. xxx/yyy = julia constant, zzz = max hits.
  687.       Eg. miim=depth/left/-.74543/.11301/3
  688.  
  689.     initorbit=<nnn/nnn>
  690.       Sets the value used to initialize Mandelbrot orbits to the given
  691.       complex number (real and imag parts).
  692.  
  693.     orbitname=<type>
  694.       Sets the orbit type for Julias.
  695.  
  696.     3dmode=<monocular|left|right|red-blue>
  697.       Sets the 3D mode used with Julibrot.
  698.  
  699.     julibrot3d=<nn[/nn[/nn[/nn[/nn[/nn]]]]]>
  700.       Sets Julibrot 3D parameters zdots, origin, depth, height, width,
  701.       and distance.
  702.  
  703.     julibroteyes=<nn>
  704.       Distance between the virtual eyes for Julibrot.
  705.  
  706.     julibrotfromto=<julibrotfromto=nn/nn[/nn/nn]>
  707.       "From-to" parameters used for Julibrot.
  708.  
  709.     corners=<xmin/xmax/ymin/ymax[/x3rd/y3rd]>
  710.       Begin with these coordinates. (Eg.: corners=-0.739/-0.736/0.288/0.291)
  711.  
  712.     viewwindows=<xx[/xx[/yes|no[/nn[/nn]]]]>
  713.       Set the reduction factor, final media aspect ratio,
  714.       crop starting coordinates (y/n), explicit x size,
  715.       and explicit y size
  716.  
  717.     center-mag=[Xctr/Yctr/Mag]
  718.       This is an alternative way to enter corners as a center point and
  719.       a magnification that is popular with some fractal programs and
  720.       publications.
  721.  
  722.     invert=<nn/nn/nn>
  723.       Turns on inversion - turns images 'inside out'
  724.  
  725.     biomorph=<nnn>
  726.       Biomorph coloring.
  727.  
  728.     bailout=<nnnn>
  729.       Use this as the iteration bailout value instead of the default.
  730.       (4.0 for most fractal types)
  731.  
  732.     symmetry=<xxxx>
  733.       Force symmetry to None, Xaxis, Yaxis, XYaxis, Origin, or Pi symmetry.
  734.  
  735.     periodicity=<no|show|nnn>
  736.       Controls periodicity checking. 'no' turns checking off; entering a
  737.       number nnn controls the tightness of checking (default 1, higher is
  738.       more stringent). 'show' or a neg value colors 'caught' points white.
  739.  
  740.     logmap=<yes|old|nn>
  741.       Yes maps logarithm of iteration to color. Old uses pre vsn 14 logic.
  742.       >1 compresses, <-1 for quadratic.
  743.  
  744.     rseed=<nnnnn>
  745.       Random number seed, for reproducable plasma clouds.
  746.  
  747.     orbitdelay=<nn>
  748.       Slows up the display of orbits (by nn/10000 sec).
  749.  
  750.     showdot=<nn>
  751.       Colors the current dot being calculated color nn.
  752.  
  753.     decomp=<nn>
  754.       'Decomposition' toggle, value 2 to 256.
  755.  
  756.     distest=<nnn/nnn>
  757.       Distance estimator method.
  758.  
  759.     formulafile=<filename>
  760.       File for type=formula.
  761.  
  762.     formulaname=<name>
  763.       Specifies the formula name for type=formula fractals.
  764.  
  765.     lfile=<filename>
  766.       File for type=lsystem.
  767.  
  768.     lname=<name>
  769.       Lsystem name for 'type=lsystem' fractals.
  770.  
  771.     ifsfile=<filename>
  772.       File for type=ifs.
  773.  
  774.     ifs=<name>
  775.       IFS name for 'type=ifs' fractals.
  776.  
  777.     stereo=<nnn>
  778.       Sets Stereo (R/B 3D) option:  0 = none, 1 = alternate,
  779.       2 = superimpose, 3 = photo.
  780.  
  781.     rotation=<nn[/nn[/nn]]>
  782.       Rotation about x, y, and z axes.
  783.  
  784.     perspective=<nn>
  785.       Perspective viewer distance (100 is at the edge).
  786.  
  787.     xyshift=<nn/nn>
  788.       Shift image in x & y directions (alters viewpoint).
  789.  
  790.     interocular=<nnn>
  791.       Sets 3D Interocular distance default value.
  792.  
  793.     converge=<nnn>
  794.       Sets 3D Convergence default value.
  795.  
  796.     crop=<nnn/nnn/nnn/nnn>
  797.       Sets 3D red-left, red-right, blue-left, and blue-right cropping values.
  798.  
  799.     bright=<nnn/nnn>
  800.       Sets 3D red and blue brightness values.
  801.  
  802.     xyadjust=<nnn/nnn>
  803.       Sets 3D X and Y adjustment values.
  804.  
  805.     3d=<yes|overlay>
  806.       Resets 3D to defaults, starts 3D mode. If overlay specified,
  807.       does not clear existing graphics screen.
  808.  
  809.     sphere=<yes>
  810.       Turns on 3D sphere mode.
  811.  
  812.     scalexyz=<nn/nn/nn>
  813.       3d x, y, and z scale factors.
  814.  
  815.     roughness=<nn>
  816.       Same as z scale factor.
  817.  
  818.     waterline=<nn>
  819.       Colors this number and below will be 'inside' color.
  820.  
  821.     filltype=<nn>
  822.       3D filltype.
  823.  
  824.     lightsource=<nn/nn/nn>
  825.       The coordinates of the light source vector.
  826.  
  827.     smoothing=<nn>
  828.       Smooths rough images in light source mode.
  829.  
  830.     latitude=<nn/nn>
  831.       Latitude minimum and maximum.
  832.  
  833.     longitude=<nn/nn>
  834.       Longitude minumim and maximum.
  835.  
  836.     radius=<nn>
  837.       Radius scale factor.
  838.  
  839.     transparent=<mm/nn>
  840.       Sets colors 'mm' to 'nn as transparent.
  841.  
  842.     preview=<yes>
  843.       Turns on 3D 'preview' mode.
  844.  
  845.     showbox=<yes>
  846.       Turns on 3D 'showbox' mode.
  847.  
  848.     coarse=<nnn>
  849.       Sets preview 'coarseness' value.
  850.  
  851.     randomize=<nnn>
  852.       Smoothes 3d color transitions between elevations.
  853.  
  854.     ambient=<nnn>
  855.       Sets depth of shadows and contrast when using light source fill types.
  856.  
  857.     haze=<nnn>
  858.       Sets haze for distant objects if fullcolor=1.
  859.  
  860.     fullcolor=<yes>
  861.       Allows creation of full color .tga image with light source fill types.
  862.  
  863.     lightname=<filename>
  864.       Targa FullColor output file name.
  865.  
  866.     ray=nnn
  867.       Selects raytrace output file format.
  868.  
  869.     brief=yes
  870.       Selects brief or verbose file for DKB output.
  871.  
  872.  
  873.   Creating Multi-image GIF files:
  874.  
  875.     To create a multiple-image GIF file from images created with xmfract,
  876.     the input images must all have the same width and height. Select the
  877.     images to be merged, then save or rename the selected gif files in
  878.     this format: "frmig_xy.gif" where x is the horizontal offset (from 0)
  879.     in the resulting mig and y is the vertical offset (from 0) in the
  880.     resulting mig... for example, if you have nine gif files to stitch
  881.     together and you want them to be in a 3-gif by 3-gif mig, then the
  882.     names will be:
  883.  
  884.     frmig_00.gif will become the upper left image
  885.     frmig_10.gif will become the upper middle image
  886.     frmig_20.gif will become the upper right image
  887.  
  888.     frmig_01.gif will become the middle left image
  889.     frmig_11.gif will become the middle middle image
  890.     frmig_21.gif will become the middle right image
  891.  
  892.     frmig_02.gif will become the lower left image
  893.     frmig_12.gif will become the lower middle image
  894.     frmig_22.gif will become the lower right image
  895.  
  896.     Because the command-line parameters are processed by xmfract before
  897.     the initialization file or environment variables, the mig maker
  898.     will not understand "fractdir" if it is set in the initialization
  899.     file or the environment. To overcome this limitation, supply the
  900.     "fractdir=" command-line argument in addition to the "makemig="
  901.     argument on the command line when creating a multi-image GIF from
  902.     files that reside in <fractdir>. If the files that are to be
  903.     stitched together reside in the current directory (from where you
  904.     invoke xmfract) then this additional argument is not necessary.
  905.  
  906.     In the above example, the command-line argument would be:
  907.       xmfract fractdir=/my/images makemig=3/3
  908.  
  909.     The output multiple-image GIF file will be named "fractmig.gif"
  910.  
  911.   4: GETTING STARTED
  912.  
  913.   To generate a fractal, select the fractal type by invoking the
  914.   "Parameters" menu (or hitting the "t" key). By default the basic
  915.   Mandelbrot type is selected. Parameters for the selected type will
  916.   be displayed. Change these if desired, then select "Create Image"
  917.   from the "Image" menu (or hit the "d" key).
  918.  
  919.   Other parameter selection is found under the "Options" menu. I have
  920.   attempted to make these selections appear (as much as possible) as they
  921.   appear in Fractint. Again, please read the above-mentioned book for
  922.   a MUCH more detailed explanation of these and other options.
  923.  
  924.   To load a pre-selected set of parameters, select "Load saved parameter
  925.   set" from the "File" menu. Once a parameter file is selected, and an
  926.   entry from that file is selected, the parameters for that image are
  927.   loaded into the calculation routines. Select "Create Image" from the
  928.   "Image" menu (or hit the "d" key) to begin creating an image.
  929.  
  930.   I have attempted to update the help files for xmfract, but there may be
  931.   inconsistencies that I have overlooked. If you spot any, please bring
  932.   them to my attention.
  933.  
  934.   5: DEVELOPER INFORMATION
  935.  
  936.   An immense debt of gratitude is owed to those who have provided
  937.   assistance and suggestions with this version of xmfract:
  938.  
  939.   -> Thomas Winder <tom@vlsivie.tuwien.ac.at> is single-handedly responsible
  940.        for all of the portability features of this project, in addition to
  941.        countless bug fixes and enhancements. Tom is an excellent programmer
  942.        and has devised fixes for many bugs that I could not solve, and has
  943.        been very successful at getting xmfract to run on Linux platforms.
  944.        Please direct any Linux questions to Tom at the address above.
  945.  
  946.   -> Noel Giffin <noel@erich.triumf.ca> has tirelessly experimented with
  947.        various porting efforts and has graciously hosted an ftp home
  948.        for the program (spanky.triumf.ca -> pub.fractals.programs.unix)
  949.        Noel has also been a constant source of ideas and suggestions
  950.        for making this program more flexible, more like Fractint, and
  951.        easier to use. Almost all of the new features of the color editor,
  952.        and many of the other user interface features of this program as
  953.        well, are due to Noel's excellent ideas.
  954.  
  955.   Several others have volunteered time and expertise, and put up with
  956.     a considerable amount of frustration and haggling on my part to
  957.     get early versions of this program in runnable shape:
  958.  
  959.     Rob Laddish <robl@rugrat.sr.hp.com>
  960.     Craig Humphrey <usagi@sans.vuw.ac.nz>
  961.     Roger Hekansson <hson@ludd.luth.se>
  962.  
  963.   Many thanks to all of you, and to all of the others whose contributions
  964.     were no less important. If you don't see your name here, shame on me!
  965.     Write me, and I'll fix it immediately.
  966.  
  967.   And, of course, a huge round of applause for the Fractint authors and
  968.     others of the Stone Soup Group, without whom there would be a great
  969.     hole in the universe where Fractint should be.
  970.  
  971.   A little history... when I began this project, I had just received the
  972.   Motif libraries from Sun and was itching to create just about anything.
  973.   I decided to use Fractint to create my first Motif program, intending
  974.   to create a simple Mandelbrot generator with a zoom box for exploration
  975.   similar to others that I had seen in demo programs for OpenLook, etc.
  976.  
  977.   I did complete that program, and in the meanwhile had become completely
  978.   captivated by Fractint. I kept that original xmfract as a Motif demo
  979.   and training program for my other developers, and began this monster.
  980.  
  981.   The Fractint authors will recognize little of their original code. I
  982.   suppose I should apologize for hacking away mercilessly at this stuff,
  983.   but I did have to get it into a condition where I could port it. There
  984.   are massive style changes in the code, as well as relocations of many
  985.   of the functions. The philosophy behind this is simply a matter of
  986.   convenience and religion so I can do nothing except say that I did it
  987.   my way. To make it easier for me to read and manipulate, I converted
  988.   the code to a style with which I am most familiar. That style means
  989.   that there are no tabs in any of these files. Indentation is (usually)
  990.   two spaces and braces are (I hope) used consistently. I read somewhere
  991.   a great truth that states "The placement of braces is perhaps the most
  992.   hotly contested issue facing developers of style guides today". I do
  993.   not intend to force my vision of the world upon you, but we will have to
  994.   live with the changes that I have made in your code :-)
  995.  
  996.   The relocations of the functions have come about for convenience. I
  997.   implemented the different fractals and calculation types in a manner
  998.   that made sense when I began coding xmfract. Some of the function
  999.   names and many variable names have changed for clarity and (more
  1000.   importantly) to avoid conflicts with UNIX System V Release 4 and
  1001.   Motif system-wide variable and function names.
  1002.  
  1003.   This program is loosely based upon Fractint version 18.2
  1004.  
  1005.   Most of the original documentation for the source code is still as
  1006.   valid for xmfract as it is for Fractint. That text is in a file
  1007.   named fractsrc.doc in the original distribution of Fractint. I will
  1008.   not attempt to duplicate or update that text in this file. The
  1009.   documentation for Fractint is quite thorough and if you attempt to
  1010.   add fractal types or fix any bugs that are not GUI-related, please
  1011.   refer to that documentation before proceeding.
  1012.  
  1013.   We use RCS, a revision control system distributed under license by the
  1014.   Free Software Foundation, Inc., to store and track the revisions of this
  1015.   code. You will find all of the revision history notes at the bottom of
  1016.   each source code file, vs. the top where I have seen them in most other
  1017.   projects.
  1018.  
  1019.   I have placed all of the global variables in a file called "globals.c",
  1020.   and reference them through "globals.h". This cleans up the headers on
  1021.   the source files and generally speeds things up.
  1022.  
  1023.   All of the macros have been moved to "macros.h".
  1024.  
  1025.   All of the functions that are effectively stubs are placed in a file
  1026.   named "stubs.c". These include the per_image and per_pixel routines
  1027.   listed in fractalp.c for integer-math fractals that have a floating-
  1028.   point equivalent. Rather than removing these entries from the
  1029.   fractalspecificstuff structure, which would make a lot of other code
  1030.   changes necessary, I just left them as stubs in this file. They
  1031.   will never be invoked.
  1032.  
  1033.   Keyboard key definitions are in "keydefs.h".
  1034.  
  1035.   When the program starts, the top level shell, canvas (drawing area),
  1036.   and menus are created, then event handlers are registered to handle
  1037.   the zoom box mouse tracking and any special keyboard events (such as
  1038.   invoking the color cycler or orbits windows). The default translations
  1039.   for mouse button events in the canvas are replaced with a function
  1040.   that handles the zoom box rubber-banding and zoom box "handle" creation.
  1041.  
  1042.   A graphics context is created with an XOR function so that when
  1043.   a zoom box is drawn on the screen it is drawn in reverse-video.
  1044.  
  1045.   A callback is then registered for the canvas resize events.
  1046.  
  1047.   The init_data() function is called to initialize all of the variables
  1048.   and allocate any memory that is required, and process command-line
  1049.   arguments.
  1050.  
  1051.   Some window size preset values are initialized. These are used in the
  1052.   option menu associated with the "Set window size" dialog.
  1053.  
  1054.   If the user has not explicitly prevented it, the credits screen pops up.
  1055.  
  1056.   After that, XtAppMainLoop() is called and the program waits for events
  1057.   generated by the user.
  1058.  
  1059.   The GUI code takes several different forms. When I was creating this
  1060.   program, I experimented with various methods for invoking the widgets
  1061.   that are displayed on the screen. This is why you may see some widgets
  1062.   created with XtSetArg called repeatedly, and others created with
  1063.   the XtVaCreate... method, which allows a null-terminated list of args.
  1064.  
  1065.   I did not use a GUI-builder to create this program. I have not (yet)
  1066.   found one of those that meets my programming needs. They do not support
  1067.   a dialog that contains a variable number of widgets, for example, and
  1068.   the widget naming and callback invocation conventions in the builders
  1069.   that I have used leave a lot to be desired.
  1070.  
  1071.   The color cycler is invoked using a timeout. See an XLib or Xt
  1072.   programmer's manual for an explanation of timeouts if you are not
  1073.   familiar with them. As the time expires, the function that is specified
  1074.   in the XtAppAddTimeout call will be invoked and the timeout removes
  1075.   itself. To get a function to repeat periodically, the called function
  1076.   must install another timeout.
  1077.  
  1078.   The window resizer also uses a timeout. A recursive function is called
  1079.   to ensure that the canvas has reached the desired size. The window will
  1080.   not be the same size as the canvas because of the menu bar. In smaller
  1081.   windows, the menu bar will become thicker because the text will be
  1082.   displayed on several rows. This is taken into consideration when the
  1083.   window is resized. If the desired size cannot be reached, an error
  1084.   message is displayed and the program exits.
  1085.  
  1086.   When the user elects to read in an image that is not the same size
  1087.   as the current window, the resize functions are conditionally called.
  1088.   When the window is resized, the X server may not have completed the
  1089.   event processing, resulting in a distorted image. I experimented with
  1090.   several different methods for ensuring that the reconfiguration was
  1091.   complete before the image was read. All of the standard recommendations
  1092.   for this type of function failed miserably with different symptoms on
  1093.   different servers. The only one that has performed reliably is an ugly
  1094.   little method that again involves our friend the timeout. When the
  1095.   resize is invoked, the program basically loops through events during
  1096.   the timeout before displaying the image file. This ensures that the
  1097.   server has had time to reconfigure the window and notify the program
  1098.   that the configuration is complete. Even the example in the O'Reilly
  1099.   books for dealing with ConfigureNotify stuff doesn't work well in this
  1100.   situation but this one, while not exactly pretty, performs excellently.
  1101.  
  1102.   The zoom box code is handled in zoom.c and rubber_band.c. Basically, the
  1103.   mouse button is trapped, tracked, and released. The default translations
  1104.   for the canvas are replaced early in the program. When the left mouse
  1105.   button is pressed down in an image, the cursor is changed to a cross-hair
  1106.   and the start_rubber_band function is called. If the mouse is held down
  1107.   and moved, the track_rubber_band function is called. When the button is
  1108.   released, the end_rubber_band function is called. The "rubber_band" name
  1109.   comes from the action of the rectangles that are drawn during the above
  1110.   process. Hold the left mouse button down in an image and move the pointer
  1111.   around in a circle about the point where you pressed the button. See that
  1112.   the resulting box will stretch and shrink like a rubber band as it
  1113.   follows the mouse.
  1114.  
  1115.   I implemented a different color palette editor because it was easier
  1116.   than attempting to implement the existing color editor, where the DOS-style
  1117.   keyboard events and mouse tracking are tough problems. I did implement
  1118.   Fractint's color editor in one version of this program, and the results
  1119.   were less than ideal. See the operation of the Julia Inverse code for
  1120.   an example of how this was done, and what the results are (press the
  1121.   space bar after completing an image). I would like to get that (jiim)
  1122.   code updated sometime so that the inverse Julia and orbits images are
  1123.   in windows other than the main window.
  1124.  
  1125.   The help system is a simple, single-threaded flat file operation. The
  1126.   help files are regular non-compressed text files that are named after
  1127.   the indexes in helpdefs.h (help.x[x[x]]). This makes it very simple to
  1128.   update or add help. It does cost slightly more in disk space, however.
  1129.  
  1130.   If you send me bug fixes or reports, enhancements, etc., please make the
  1131.   code conform to System V Release 4 and ANSI specifications. Of course,
  1132.   all of these additions or fixes will be documented with the author's name
  1133.   and other vital statistics, in keeping with the phenomenal philosophy of
  1134.   the Stone Soup Group.
  1135.  
  1136.   Program size and performance has varied very little under different
  1137.   compilers in my environment. You will see, of course, a vast reduction
  1138.   in fractal generation time if you run the program on a server instead
  1139.   of a workstation.
  1140.  
  1141.   6: BUGS
  1142.  
  1143.   Probably infinite.
  1144.  
  1145.   - The ones I know about:
  1146.  
  1147.       -> On machines where the size of the 'float' data type does not
  1148.          equal the size of the 'long' data type, the log palette functions
  1149.          will fail causing alignment errors and, eventually, segmentation
  1150.          faults. A workaround (sort of) -- don't use a log palette setting
  1151.          other than zero.
  1152.  
  1153.       -> The 3D tranformation function cannot be interrupted with the
  1154.          ESC or CTRL-C keys. This is due to the recursive nature of
  1155.          the plasma fractal type, which also cannot be interrupted.
  1156.  
  1157.       -> Tear-off menus do not work on many Linux systems. If you
  1158.          attempt to tear off a menu and the program halts, you
  1159.          may disable the tear-off menus by changing the tear-off
  1160.          resource in xmfract's resource file. Change the line
  1161.          that reads: Xmfract**tearOffModel: TEAR_OFF_ENABLED
  1162.          to: Xmfract**tearOffModel: TEAR_OFF_DISABLED
  1163.          xmfract does not have to be re-compiled when any
  1164.          resource is changed. Simply stop and restart the program.
  1165.  
  1166.       -> The Restore menu and saved image indexes are confusing.
  1167.  
  1168.       -> Generating a set of thumbnail GIF images is tedious.
  1169.  
  1170.   7: CORRESPONDENCE
  1171.  
  1172.   Bug reports, complaints, comments of any sort, and any news whatsoever
  1173.   concerning this program are *all* welcome, any time. I enjoy hearing
  1174.   from anyone who has used this program. Thank you!
  1175.  
  1176.   Send correspondence by e-mail, phone, surface mail or fax:
  1177.  
  1178.     Darryl House
  1179.     Business Process Systems and Services (BPSS)
  1180.     Electronic Data Systems, Inc.
  1181.     450 W. East Avenue
  1182.     Chico, CA 95926
  1183.  
  1184.     e-mail: darryl@chc.bpss.eds.com
  1185.  
  1186.     ph:(916) 896-7076 fax:(916) 896-7193 icbm:39.48N 121.51W
  1187.  
  1188.   8: TO-DO LIST
  1189.  
  1190.   Things that will be (or maybe will be) accomplished in the next
  1191.   major release of xmfract (release 2.0). These are in addition
  1192.   to all of the features in this release, and all of the new
  1193.   features of Fractint 19.2 (newer than Fractint 18.2). These
  1194.   are not listed in any particular order.
  1195.  
  1196.   -- Enhance the zoom box, adding rotation and skew.
  1197.  
  1198.   -- Put the inverse julia and orbits displays in windows other
  1199.      than the main window.
  1200.  
  1201.   -- Display the contents of parameter file entries as they
  1202.      are selected.
  1203.  
  1204.   -- Revise the history and image restoration functions, adding
  1205.      a browsing dialog that may display thumbnail images created
  1206.      from the saved parameters.
  1207.  
  1208.   -- Enhance the reset options, adding modes where the options
  1209.      and/or parameters may be reset independently. Also take
  1210.      into consideration the preview mode and window resize mode.
  1211.  
  1212.   -- Add image manipulation routines which change the size of the
  1213.      image according to a preset range of sizes.
  1214.  
  1215.   -- Add 90-degree (and continuously-variable?) image rotation.
  1216.  
  1217.   -- Add HSV controls to the color editor.
  1218.  
  1219.   -- Add (up to) 24-bit color support.
  1220.  
  1221.   -- Add support for more image formats (TIFF, MPEG, PNG).
  1222.  
  1223.   -- Add (maybe various flavors of) image animation.
  1224.  
  1225.   -- Add a Fractint-like "Enter command string" function.
  1226.  
  1227.   -- Automate and enhance the MIG generator (with support
  1228.      for other image formats?)
  1229.  
  1230.   -- Enhance the formula parser, adding binary if/else.
  1231.  
  1232.   -- Add image manipulation routines for merging images.
  1233.  
  1234.   -- Add ray-trace (and rendering?) capabilities.
  1235.  
  1236.   -- Add fractal morphing capability.
  1237.  
  1238.   -- Revise the on-line help, adding contex-sensitive help and hyper-links.
  1239.  
  1240.   -- A whole host of other stuff...
  1241.  
  1242.  
  1243.   9: GNU GENERAL PUBLIC LICENSE
  1244.  
  1245.                     GNU GENERAL PUBLIC LICENSE
  1246.                        Version 2, June 1991
  1247.  
  1248.  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  1249.                           675 Mass Ave, Cambridge, MA 02139, USA
  1250.  Everyone is permitted to copy and distribute verbatim copies
  1251.  of this license document, but changing it is not allowed.
  1252.  
  1253.                             Preamble
  1254.  
  1255.   The licenses for most software are designed to take away your
  1256. freedom to share and change it.  By contrast, the GNU General Public
  1257. License is intended to guarantee your freedom to share and change free
  1258. software--to make sure the software is free for all its users.  This
  1259. General Public License applies to most of the Free Software
  1260. Foundation's software and to any other program whose authors commit to
  1261. using it.  (Some other Free Software Foundation software is covered by
  1262. the GNU Library General Public License instead.)  You can apply it to
  1263. your programs, too.
  1264.  
  1265.   When we speak of free software, we are referring to freedom, not
  1266. price.  Our General Public Licenses are designed to make sure that you
  1267. have the freedom to distribute copies of free software (and charge for
  1268. this service if you wish), that you receive source code or can get it
  1269. if you want it, that you can change the software or use pieces of it
  1270. in new free programs; and that you know you can do these things.
  1271.  
  1272.   To protect your rights, we need to make restrictions that forbid
  1273. anyone to deny you these rights or to ask you to surrender the rights.
  1274. These restrictions translate to certain responsibilities for you if you
  1275. distribute copies of the software, or if you modify it.
  1276.  
  1277.   For example, if you distribute copies of such a program, whether
  1278. gratis or for a fee, you must give the recipients all the rights that
  1279. you have.  You must make sure that they, too, receive or can get the
  1280. source code.  And you must show them these terms so they know their
  1281. rights.
  1282.  
  1283.   We protect your rights with two steps: (1) copyright the software, and
  1284. (2) offer you this license which gives you legal permission to copy,
  1285. distribute and/or modify the software.
  1286.  
  1287.   Also, for each author's protection and ours, we want to make certain
  1288. that everyone understands that there is no warranty for this free
  1289. software.  If the software is modified by someone else and passed on, we
  1290. want its recipients to know that what they have is not the original, so
  1291. that any problems introduced by others will not reflect on the original
  1292. authors' reputations.
  1293.  
  1294.   Finally, any free program is threatened constantly by software
  1295. patents.  We wish to avoid the danger that redistributors of a free
  1296. program will individually obtain patent licenses, in effect making the
  1297. program proprietary.  To prevent this, we have made it clear that any
  1298. patent must be licensed for everyone's free use or not licensed at all.
  1299.  
  1300.   The precise terms and conditions for copying, distribution and
  1301. modification follow.
  1302.  
  1303.                     GNU GENERAL PUBLIC LICENSE
  1304.    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  1305.  
  1306.   0. This License applies to any program or other work which contains
  1307. a notice placed by the copyright holder saying it may be distributed
  1308. under the terms of this General Public License.  The "Program", below,
  1309. refers to any such program or work, and a "work based on the Program"
  1310. means either the Program or any derivative work under copyright law:
  1311. that is to say, a work containing the Program or a portion of it,
  1312. either verbatim or with modifications and/or translated into another
  1313. language.  (Hereinafter, translation is included without limitation in
  1314. the term "modification".)  Each licensee is addressed as "you".
  1315.  
  1316. Activities other than copying, distribution and modification are not
  1317. covered by this License; they are outside its scope.  The act of
  1318. running the Program is not restricted, and the output from the Program
  1319. is covered only if its contents constitute a work based on the
  1320. Program (independent of having been made by running the Program).
  1321. Whether that is true depends on what the Program does.
  1322.  
  1323.   1. You may copy and distribute verbatim copies of the Program's
  1324. source code as you receive it, in any medium, provided that you
  1325. conspicuously and appropriately publish on each copy an appropriate
  1326. copyright notice and disclaimer of warranty; keep intact all the
  1327. notices that refer to this License and to the absence of any warranty;
  1328. and give any other recipients of the Program a copy of this License
  1329. along with the Program.
  1330.  
  1331. You may charge a fee for the physical act of transferring a copy, and
  1332. you may at your option offer warranty protection in exchange for a fee.
  1333.  
  1334.   2. You may modify your copy or copies of the Program or any portion
  1335. of it, thus forming a work based on the Program, and copy and
  1336. distribute such modifications or work under the terms of Section 1
  1337. above, provided that you also meet all of these conditions:
  1338.  
  1339.     a) You must cause the modified files to carry prominent notices
  1340.     stating that you changed the files and the date of any change.
  1341.  
  1342.     b) You must cause any work that you distribute or publish, that in
  1343.     whole or in part contains or is derived from the Program or any
  1344.     part thereof, to be licensed as a whole at no charge to all third
  1345.     parties under the terms of this License.
  1346.  
  1347.     c) If the modified program normally reads commands interactively
  1348.     when run, you must cause it, when started running for such
  1349.     interactive use in the most ordinary way, to print or display an
  1350.     announcement including an appropriate copyright notice and a
  1351.     notice that there is no warranty (or else, saying that you provide
  1352.     a warranty) and that users may redistribute the program under
  1353.     these conditions, and telling the user how to view a copy of this
  1354.     License.  (Exception: if the Program itself is interactive but
  1355.     does not normally print such an announcement, your work based on
  1356.     the Program is not required to print an announcement.)
  1357.  
  1358. These requirements apply to the modified work as a whole.  If
  1359. identifiable sections of that work are not derived from the Program,
  1360. and can be reasonably considered independent and separate works in
  1361. themselves, then this License, and its terms, do not apply to those
  1362. sections when you distribute them as separate works.  But when you
  1363. distribute the same sections as part of a whole which is a work based
  1364. on the Program, the distribution of the whole must be on the terms of
  1365. this License, whose permissions for other licensees extend to the
  1366. entire whole, and thus to each and every part regardless of who wrote it.
  1367.  
  1368. Thus, it is not the intent of this section to claim rights or contest
  1369. your rights to work written entirely by you; rather, the intent is to
  1370. exercise the right to control the distribution of derivative or
  1371. collective works based on the Program.
  1372.  
  1373. In addition, mere aggregation of another work not based on the Program
  1374. with the Program (or with a work based on the Program) on a volume of
  1375. a storage or distribution medium does not bring the other work under
  1376. the scope of this License.
  1377.  
  1378.   3. You may copy and distribute the Program (or a work based on it,
  1379. under Section 2) in object code or executable form under the terms of
  1380. Sections 1 and 2 above provided that you also do one of the following:
  1381.  
  1382.     a) Accompany it with the complete corresponding machine-readable
  1383.     source code, which must be distributed under the terms of Sections
  1384.     1 and 2 above on a medium customarily used for software interchange; or,
  1385.  
  1386.     b) Accompany it with a written offer, valid for at least three
  1387.     years, to give any third party, for a charge no more than your
  1388.     cost of physically performing source distribution, a complete
  1389.     machine-readable copy of the corresponding source code, to be
  1390.     distributed under the terms of Sections 1 and 2 above on a medium
  1391.     customarily used for software interchange; or,
  1392.  
  1393.     c) Accompany it with the information you received as to the offer
  1394.     to distribute corresponding source code.  (This alternative is
  1395.     allowed only for noncommercial distribution and only if you
  1396.     received the program in object code or executable form with such
  1397.     an offer, in accord with Subsection b above.)
  1398.  
  1399. The source code for a work means the preferred form of the work for
  1400. making modifications to it.  For an executable work, complete source
  1401. code means all the source code for all modules it contains, plus any
  1402. associated interface definition files, plus the scripts used to
  1403. control compilation and installation of the executable.  However, as a
  1404. special exception, the source code distributed need not include
  1405. anything that is normally distributed (in either source or binary
  1406. form) with the major components (compiler, kernel, and so on) of the
  1407. operating system on which the executable runs, unless that component
  1408. itself accompanies the executable.
  1409.  
  1410. If distribution of executable or object code is made by offering
  1411. access to copy from a designated place, then offering equivalent
  1412. access to copy the source code from the same place counts as
  1413. distribution of the source code, even though third parties are not
  1414. compelled to copy the source along with the object code.
  1415.  
  1416.   4. You may not copy, modify, sublicense, or distribute the Program
  1417. except as expressly provided under this License.  Any attempt
  1418. otherwise to copy, modify, sublicense or distribute the Program is
  1419. void, and will automatically terminate your rights under this License.
  1420. However, parties who have received copies, or rights, from you under
  1421. this License will not have their licenses terminated so long as such
  1422. parties remain in full compliance.
  1423.  
  1424.   5. You are not required to accept this License, since you have not
  1425. signed it.  However, nothing else grants you permission to modify or
  1426. distribute the Program or its derivative works.  These actions are
  1427. prohibited by law if you do not accept this License.  Therefore, by
  1428. modifying or distributing the Program (or any work based on the
  1429. Program), you indicate your acceptance of this License to do so, and
  1430. all its terms and conditions for copying, distributing or modifying
  1431. the Program or works based on it.
  1432.  
  1433.   6. Each time you redistribute the Program (or any work based on the
  1434. Program), the recipient automatically receives a license from the
  1435. original licensor to copy, distribute or modify the Program subject to
  1436. these terms and conditions.  You may not impose any further
  1437. restrictions on the recipients' exercise of the rights granted herein.
  1438. You are not responsible for enforcing compliance by third parties to
  1439. this License.
  1440.  
  1441.   7. If, as a consequence of a court judgment or allegation of patent
  1442. infringement or for any other reason (not limited to patent issues),
  1443. conditions are imposed on you (whether by court order, agreement or
  1444. otherwise) that contradict the conditions of this License, they do not
  1445. excuse you from the conditions of this License.  If you cannot
  1446. distribute so as to satisfy simultaneously your obligations under this
  1447. License and any other pertinent obligations, then as a consequence you
  1448. may not distribute the Program at all.  For example, if a patent
  1449. license would not permit royalty-free redistribution of the Program by
  1450. all those who receive copies directly or indirectly through you, then
  1451. the only way you could satisfy both it and this License would be to
  1452. refrain entirely from distribution of the Program.
  1453.  
  1454. If any portion of this section is held invalid or unenforceable under
  1455. any particular circumstance, the balance of the section is intended to
  1456. apply and the section as a whole is intended to apply in other
  1457. circumstances.
  1458.  
  1459. It is not the purpose of this section to induce you to infringe any
  1460. patents or other property right claims or to contest validity of any
  1461. such claims; this section has the sole purpose of protecting the
  1462. integrity of the free software distribution system, which is
  1463. implemented by public license practices.  Many people have made
  1464. generous contributions to the wide range of software distributed
  1465. through that system in reliance on consistent application of that
  1466. system; it is up to the author/donor to decide if he or she is willing
  1467. to distribute software through any other system and a licensee cannot
  1468. impose that choice.
  1469.  
  1470. This section is intended to make thoroughly clear what is believed to
  1471. be a consequence of the rest of this License.
  1472.  
  1473.   8. If the distribution and/or use of the Program is restricted in
  1474. certain countries either by patents or by copyrighted interfaces, the
  1475. original copyright holder who places the Program under this License
  1476. may add an explicit geographical distribution limitation excluding
  1477. those countries, so that distribution is permitted only in or among
  1478. countries not thus excluded.  In such case, this License incorporates
  1479. the limitation as if written in the body of this License.
  1480.  
  1481.   9. The Free Software Foundation may publish revised and/or new versions
  1482. of the General Public License from time to time.  Such new versions will
  1483. be similar in spirit to the present version, but may differ in detail to
  1484. address new problems or concerns.
  1485.  
  1486. Each version is given a distinguishing version number.  If the Program
  1487. specifies a version number of this License which applies to it and "any
  1488. later version", you have the option of following the terms and conditions
  1489. either of that version or of any later version published by the Free
  1490. Software Foundation.  If the Program does not specify a version number of
  1491. this License, you may choose any version ever published by the Free Software
  1492. Foundation.
  1493.  
  1494.   10. If you wish to incorporate parts of the Program into other free
  1495. programs whose distribution conditions are different, write to the author
  1496. to ask for permission.  For software which is copyrighted by the Free
  1497. Software Foundation, write to the Free Software Foundation; we sometimes
  1498. make exceptions for this.  Our decision will be guided by the two goals
  1499. of preserving the free status of all derivatives of our free software and
  1500. of promoting the sharing and reuse of software generally.
  1501.  
  1502.                             NO WARRANTY
  1503.  
  1504.   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  1505. FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  1506. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  1507. PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  1508. OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  1509. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
  1510. TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  1511. PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  1512. REPAIR OR CORRECTION.
  1513.  
  1514.   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  1515. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  1516. REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  1517. INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  1518. OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  1519. TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  1520. YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  1521. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  1522. POSSIBILITY OF SUCH DAMAGES.
  1523.  
  1524.                      END OF TERMS AND CONDITIONS
  1525.  
  1526.         Appendix: How to Apply These Terms to Your New Programs
  1527.  
  1528.   If you develop a new program, and you want it to be of the greatest
  1529. possible use to the public, the best way to achieve this is to make it
  1530. free software which everyone can redistribute and change under these terms.
  1531.  
  1532.   To do so, attach the following notices to the program.  It is safest
  1533. to attach them to the start of each source file to most effectively
  1534. convey the exclusion of warranty; and each file should have at least
  1535. the "copyright" line and a pointer to where the full notice is found.
  1536.  
  1537.     <one line to give the program's name and a brief idea of what it does.>
  1538.     Copyright (C) 19yy  <name of author>
  1539.  
  1540.     This program is free software; you can redistribute it and/or modify
  1541.     it under the terms of the GNU General Public License as published by
  1542.     the Free Software Foundation; either version 2 of the License, or
  1543.     (at your option) any later version.
  1544.  
  1545.     This program is distributed in the hope that it will be useful,
  1546.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  1547.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1548.     GNU General Public License for more details.
  1549.  
  1550.     You should have received a copy of the GNU General Public License
  1551.     along with this program; if not, write to the Free Software
  1552.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1553.  
  1554. Also add information on how to contact you by electronic and paper mail.
  1555.  
  1556. If the program is interactive, make it output a short notice like this
  1557. when it starts in an interactive mode:
  1558.  
  1559.     Gnomovision version 69, Copyright (C) 19yy name of author
  1560.     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  1561.     This is free software, and you are welcome to redistribute it
  1562.     under certain conditions; type `show c' for details.
  1563.  
  1564. The hypothetical commands `show w' and `show c' should show the appropriate
  1565. parts of the General Public License.  Of course, the commands you use may
  1566. be called something other than `show w' and `show c'; they could even be
  1567. mouse-clicks or menu items--whatever suits your program.
  1568.  
  1569. You should also get your employer (if you work as a programmer) or your
  1570. school, if any, to sign a "copyright disclaimer" for the program, if
  1571. necessary.  Here is a sample; alter the names:
  1572.  
  1573.   Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  1574.   `Gnomovision' (which makes passes at compilers) written by James Hacker.
  1575.  
  1576.   <signature of Ty Coon>, 1 April 1989
  1577.   Ty Coon, President of Vice
  1578.  
  1579. This General Public License does not permit incorporating your program into
  1580. proprietary programs.  If your program is a subroutine library, you may
  1581. consider it more useful to permit linking proprietary applications with the
  1582. library.  If this is what you want to do, use the GNU Library General
  1583. Public License instead of this License.
  1584.