3
PURPOSE: The top-level program for Wet&Sticky
4
AUTHOR: Kevin Waite and David England
5
VERSION: 1.00 (10-May-91)
7
Copyright 1991, 1992, 2002, 2003 Tunde Cockshott, Kevin Waite, David England.
9
Contact David England d.england@livjm.ac.uk
10
School of Computing and Maths Sciences,
11
Liverpool John Moores University
14
Phone +44 151 231 2271
17
Wet and Sticky is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Wet and Sticky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Wet and Sticky; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
#include "constants.h"
24
#include "win_interface.h"
36
The Wet&Sticky program can be executed with optional parameters.
37
Those parameters used by the X graphics system are stripped out.
38
If no parameters are given then the program runs as a purely
39
interactive system. This requires input handling which is not
40
yet implemented. If the argument is the string '-blob' then the
41
program uses a square blob as the starting image. Otherwise the
42
program assumes the argument is a filename containing a previously
43
stored canvas. This is then loaded into the canvas as a starting
52
extern int optind, opterr;
58
fprintf(stdout, "Wet&Sticky Version %s\n", VERSION);
59
fprintf(stdout, "Implemented by K.Waite and D.England, 1991\n");
60
fprintf(stdout, "Based on ideas by Tunde Cockshott\n\n");
64
if (DEBUG) fprintf (stdout, "Finished initialising the canvas\n");
66
CreateWindows (&argc, argv, CANVAS_WIDTH , CANVAS_HEIGHT);
74
fprintf(stderr, "HEIGHT %g\n", HEIGHT_SCALE);
76
while ((c = getopt(argc, argv, "f:s:")) != EOF)
80
load_file(filename, &width, &height);
84
fprintf(stderr, "HEIGHT string %s \n",optarg);
85
HEIGHT_SCALE = atof(optarg);
92
blob (DEFAULT_BLOB_SIZE);
94
fprintf(stderr, "HEIGHT %g\n", HEIGHT_SCALE);
96
StartVolumeWindow (CANVAS_WIDTH, CANVAS_HEIGHT);
97
StartDrynessWindow (CANVAS_WIDTH, CANVAS_HEIGHT);
99
if (DEBUG) fprintf (stdout, "Finished preparing X\n");
101
if (DEBUG) fprintf (stdout, "Passing control to window manager\n");