home *** CD-ROM | disk | FTP | other *** search
-
- IMPORTANT: YOU MUST INSTALL THE LIBRARY GWIN.library IN
- sys:libs/GWIN.library BEFORE THESE EXAMPLES WILL RUN. Double-click the
- "install" icon to perform this installation.
-
-
- The examples and a brief description of each are as follows:
-
-
- clipdemo
-
- Demonstrates setup of a GWIN clipping window within an Amiga
- window.
-
-
- colormap2
-
- Demonstrates changing the colormap. Place cursor inside a
- triangle, depress left mouse button and move cursor around.
- The points of the triangles correspond to Red, Green and
- Blue. Distance from the center determines how much Red,
- Green or Blue.
-
-
- placeobject
-
- Demonstrates moving and placing a rectangle of various
- colors.
-
-
- rubberbandline
-
- Demonstrates a rubberband line. Simple demo intended only
- to illustrate how a rubberband line is generated.
-
-
- text
-
- Demonstrates use of font selection and various text display
- options.
-
-
- graph
-
- Accepts a list of numbers either from the keyboard or from
- standard input. The numbers are assumed to be Y
- coordinates. Integer X coordinates are automatically
- assigned. A graph is drawn. Menu options allow switching
- between line graph and bar graph modes. If you place a list
- of numbers in a file (say file1) then issue the command
- "graph <file1", the numbers will be graphed.
-
-
- graph2
-
- Similar to graph above but reads x and y values from a file
- or keyboard instead of only y values. The file, banjohead,
- is a Fourier frequency analysis of the impulse response of
- my banjo head. The x values are frequency in cycles per
- second (or Hertz if you don't remember REAL physics) and the
- y values are the amplitude values at each frequency.
-
- graph3
-
- Similar to graph2 above but reads x and y values and a
- y-axis label. The labels are plotted.
-
- request
-
- Shows how to use a requester to ask the user a yes/no
- question.
-
-
- screentypes
-
- Demonstrates all 10 types of screens supported by GWIN.
-
-
- three-d
-
- Allows construction of three-dimensional figures. You would
- need red/blue glasses to see the three-dimensional effect
- however.
-
-
- menu
-
- Demonstrates how to build and use menus in GWIN.
-
-
- rubberbandbox
-
- Demonstrates building boxes using a rubberband box.
-
-
- spiceplot
-
- For you Electrical Engineers who have access to some version
- of the "SPICE" program. Spiceplot reads a SPICE output file
- from standard input, i.e., type: "spiceplot <spiceoutput" to
- see it plot curves contained in the spiceoutput file. Note
- the format of the data in the spiceoutput file. Spiceplot
- is looking for the lists of node data. Depress the left
- mouse button and hold, drag, and release. A rubberband box
- will have appeared and the selected region will be expanded
- to fill the screen. Use the menu to restore the curves to
- their original scale. As the cursor moves, the coordinates
- are displayed.
-
-
- speedy
-
- Demonstrates how Amiga calls can be used within a screen and
- window initiated by GWIN. GWIN saved all of the effort of
- bringing up a special screen and window while allowing full
- use of all standard Amiga graphics functions. Speedy makes
- use of direct Amiga graphics function calls to provide the
- fastest possible graphics operations. This means that for
- special purposes, it is possible to bypass the floating
- point world/screen coordinate transformations that are a
- part of normal GWIN operation. The function uigrina is
- provided to allow transformationless return of x and y
- cursor coordinates for greatest possible speed. The slowest
- thing in "speedy" is perhaps the call to the random number
- generator, "ran".
-
-
- changecolor
-
- Demonstrates color adjustment for photographing the screen.
-
-
- bug-e
-
- Demonstrates the infamous ellipse bug wherein the
- construction rectangles are not cleared by the system. The
- fact that you have to clear the construction rectangles is
- undocumented. (Although who knows, in Europe it is
- probably documented.)
-
-
-