README - X11 Sample code for GPM Modula-2.   (jl Mar 95)
=====================================================================

Some of the code in this directory is copyright by Raoul Gough.
See the comments in the code for conditions of use.


*  example1.mod to example6.mod are template X programs of increasing
	complexity.  They don't really do anything very meaningful.


*  realmand is a hi-resolution mandelbrot program.  It is pretty slow.
        One button click sets the new centre the second sets a point on
	the x axis, thus defining the position and zoom ratio

    $ gpmake realmand
    $ reamand


*  coarsemand is the same but does the squares in finer and finer
        resolution, allowing an area to be homed in on quickly. It also
        accepts optional arguments "top left xSize ySize" to open a window
        different from the default "0 0 1000 800".
	You may zoom in without waiting for the whole picture to reach full
	precision.  Click mouse once on target point for new centre, click 
	again for the x-boundary of the new window. 

    $ gpmake coarsemand
    $ coarsemand 800 0 400 400


*  drawmaze constructs and solves random mazes by recursive backtracking.
	The statistics are random so that both the maze, and the branching
	probability vary.

    $ gpmake drawmaze
    $ drawmaze


* pento continuously solves the pentominoes puzzle. It finds 2339 solutions.
  The number of solutions is actually four times this, but the algorithm
  constrains the 5x1 block to be in the lower left quadrant to eliminate
  the rotation and reflection symmetries.

    $ gpmake pento
    $ pento -d

  
*  setcolours sets the colour map and displays a colour sampler
	Use makeramp to create the data file.  Some sample data
	files, "primaryramp.dat" & "bluegreenramp.dat" are included.

    $ gpmake makeramp
    $ gpmake setcolours
    $ makeramp > newramp.dat
    $ setcolours < newramp.dat


*  snakes is silly, try with 5 snakes, length 100, delay 0

    $ gpmake snakes
    $ snakes


*  quix has colour and motion

    $ gpmake quix
    $ quix

=======================================================================
