CORAL

Section: Misc. Reference Manual Pages (6X)
Index Return to Main Contents
 

NAME

coral - calculate and display a rising aggregate of particles  

SYNOPSIS


coral [-duFR][-w width][-h height][-o filename][-m index][-c colorwheel][-n count][-k duration]  

DESCRIPTION

coral generates and graphically displays a rising aggregate of particles in simulation of something like 2-D coral growth.  

OPTIONS

-R
Indicates the display will be in the root window. In this mode, the default color map will be used and no spinning of the color wheel is possible.
-c n
Selects one of many different color wheels to use. The default color wheel is a rainbow palette.
-d
Indicates demo mode. In this mode, the aggregate will be calculated, displayed, spun, then the program will exit.
-w n
Specifies the width of the window. Default is 512.
-h n
Specifies the height of the window. Default is 512.
-k duration
Specifies the number of points to compute before changing colors. Default is number of seeds times number of colors.
-m n
Specifies the minimum color index to be used for the upper end of the color wheel
-n numpics
Specifies how many aggregates to compute before exiting. During display (see NOTES below), pressing 'n' or 'N' will skip to the next map.
-o filename
Specifies the output filename to be used. If the -o option is given, this file will automatically be written out at the completion of the drawing. If it is not specified, a default filename of coral.ppm is used and only written if the 'f' or 'F' keys are pressed during a run. The format of the output file is PPM. The parameters used to calculate the picture are included as comments at the beginning of the output file.
-s
Indicates to spin the color wheel immediately upon completion of display.
-u
Produces a usage message.

 

NOTES

During display, use of the keys +-dDfFnNSRrswWX?hqQ indicates:


           (+) Increment minimum color index.
           (+) Decrement minimum color index.
           (n or N) Skip to the next aggregate.
           (s) Spin the color wheel in the positive direction.
           (r) Spin the color wheel in the negative direction.
           (R or S) Stop color wheel spinning.
           (W or w) Increment or decrement the color map index.
           (X) Erase current coral growth and start over with new seeds.
           (Q or q) quit

 

AUTHOR

        Ronald Joe Record
     The Santa Cruz Operation 
          P.O. Box 1900
       Santa Cruz, CA 95061
            rr@sco.com

 

ACKNOWLEDGEMENTS

The algorithm, which uses a modified random walk, was derived from lectures given by Dietmar Saupe at the University of California at Santa Cruz. Assistance with colormaps and spinning color wheels and X was gleaned from Hiram Clawson and Stacey Campbell.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
NOTES
AUTHOR
ACKNOWLEDGEMENTS

This document was created by man2html, using the manual pages.
Time: 04:06:37 GMT, December 02, 2024