home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d571 / gwin.lha / Gwin / Examples / Examples.doc < prev    next >
Text File  |  1991-12-22  |  5KB  |  142 lines

  1.  
  2. IMPORTANT:  YOU MUST INSTALL THE LIBRARY GWIN.library IN
  3. sys:libs/GWIN.library BEFORE THESE EXAMPLES WILL RUN.  Double-click the
  4. "install" icon to perform this installation.
  5.  
  6.  
  7. The examples and a brief description of each are as follows:
  8.  
  9.  
  10.         clipdemo
  11.  
  12.                 Demonstrates setup of a GWIN clipping window within an Amiga
  13.                 window.
  14.  
  15.  
  16.         colormap2
  17.  
  18.                 Demonstrates changing the colormap.  Place cursor  inside  a
  19.                 triangle,  depress left mouse button and move cursor around.
  20.                 The points of the triangles correspond  to  Red,  Green  and
  21.                 Blue.  Distance  from  the  center  determines how much Red,
  22.                 Green or Blue.
  23.  
  24.  
  25.         placeobject
  26.  
  27.                 Demonstrates moving  and  placing  a  rectangle  of  various
  28.                 colors.
  29.  
  30.  
  31.         rubberbandline
  32.  
  33.                 Demonstrates a  rubberband  line.  Simple demo intended only
  34.                 to illustrate how a rubberband line is generated.
  35.  
  36.  
  37.         text
  38.  
  39.                 Demonstrates  use of font selection and various text display
  40.                 options.
  41.  
  42.  
  43.         graph
  44.  
  45.                 Accepts  a  list of numbers either from the keyboard or from
  46.                 standard input.    The  numbers  are   assumed   to   be   Y
  47.                 coordinates.    Integer   X  coordinates  are  automatically
  48.                 assigned.  A graph is drawn.  Menu options  allow  switching
  49.                 between line graph and bar graph modes.  If you place a list
  50.                 of  numbers  in  a  file  (say file1) then issue the command
  51.                 "graph <file1", the numbers will be graphed.
  52.  
  53.  
  54.         graph2
  55.  
  56.                Similar to graph above but reads x and y values from a file
  57.                or keyboard instead of only y values.  The file, banjohead,
  58.                is a Fourier frequency analysis of the impulse response of
  59.                my banjo head.  The x values are frequency in cycles per
  60.                second (or Hertz if you don't remember REAL physics) and the
  61.                y values are the amplitude values at each frequency.
  62.  
  63.         graph3
  64.  
  65.                Similar to graph2 above but reads x and y values and a
  66.                y-axis label.  The labels are plotted.
  67.  
  68.         request
  69.  
  70.                 Shows how to use a  requester  to  ask  the  user  a  yes/no
  71.                 question.
  72.  
  73.  
  74.         screentypes
  75.  
  76.                 Demonstrates all 10 types of screens supported by GWIN.
  77.  
  78.  
  79.         three-d
  80.  
  81.                 Allows construction of three-dimensional figures.  You would
  82.                 need  red/blue  glasses  to see the three-dimensional effect
  83.                 however.
  84.  
  85.  
  86.         menu
  87.  
  88.                 Demonstrates how to build and use menus in GWIN.
  89.  
  90.  
  91.         rubberbandbox
  92.  
  93.                 Demonstrates building boxes using a rubberband box.
  94.  
  95.  
  96.         spiceplot
  97.  
  98.                 For you Electrical Engineers who have access to some version
  99.                 of the "SPICE" program.  Spiceplot reads a SPICE output file
  100.                 from standard input, i.e., type: "spiceplot <spiceoutput" to
  101.                 see it  plot curves contained in the spiceoutput file.  Note
  102.                 the format of the data in the spiceoutput file.    Spiceplot
  103.                 is looking  for  the  lists  of node data.  Depress the left
  104.                 mouse button and hold, drag, and release.  A rubberband  box
  105.                 will  have appeared and the selected region will be expanded
  106.                 to fill the screen.  Use the menu to restore the  curves  to
  107.                 their original  scale.  As the cursor moves, the coordinates
  108.                 are displayed.
  109.  
  110.  
  111.         speedy
  112.  
  113.                 Demonstrates how Amiga calls can be used within a screen and
  114.                 window  initiated  by  GWIN. GWIN saved all of the effort of
  115.                 bringing up a special screen and window while allowing  full
  116.                 use of  all standard Amiga graphics functions.  Speedy makes
  117.                 use of direct Amiga graphics function calls to  provide  the
  118.                 fastest possible  graphics  operations.  This means that for
  119.                 special purposes, it is  possible  to  bypass  the  floating
  120.                 point  world/screen  coordinate  transformations  that are a
  121.                 part of normal GWIN operation.    The  function  uigrina  is
  122.                 provided  to  allow  transformationless  return  of  x and y
  123.                 cursor coordinates for greatest possible speed.  The slowest
  124.                 thing in "speedy" is perhaps the call to the  random  number
  125.                 generator, "ran".
  126.  
  127.  
  128.         changecolor
  129.  
  130.                 Demonstrates color adjustment for photographing the screen.
  131.  
  132.  
  133.          bug-e
  134.  
  135.                 Demonstrates the infamous ellipse bug wherein the
  136.                 construction rectangles are not cleared by the system.  The
  137.                 fact that you have to clear the construction rectangles is
  138.                 undocumented.  (Although who knows, in Europe it is
  139.                 probably documented.)
  140.  
  141.  
  142.