home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 141.lha / CONTOURA.doc < prev    next >
Text File  |  1986-11-21  |  13KB  |  292 lines

  1.     
  2.                     HERMES' CONTOURA  (Version 1.0)
  3.  
  4.                   Copyright (c) 1988 A. G. Kartsatos 
  5.  
  6.            (CIS = 76617,121, GEnie = XTH58515, PLink = HERMES)
  7.  
  8.  
  9.                        ***  Shareware Program  ***
  10.  
  11.  
  12.      This is a beautiful graphics program that graphs the contours of 
  13. 3D-functions of the type Z = F(X,Y).  It is of interest to scientists and
  14. engineers as well as painters and designers.  You can use it to paint
  15. beautiful abstract paintings and design images and shapes for dresses,
  16. shirts, textiles, etc.
  17.      You can save your picture with GRABBiT and manipulate it further with
  18. Deluxe Paint.  Just remember to jot down the formula and the other data
  19. on the front panel just in case you want to play with it again.
  20.      I will modify your copy of the program to your liking (if I can).
  21.      Let me know of what you have created.  This is a powerful tool in your
  22. hands.  If you have never thought before of yourself as being a painter,
  23. you can do that easily now.
  24.      Have fun!
  25.   
  26.                 @@-->>> HERMES
  27.  
  28.      ATTENTION:  The "TOPAZ 11" font should be in your current "fonts" 
  29. directory. If it is not there, you will get the program running with "funny"
  30. fonts!
  31.  
  32.      To use it from the CLI: Press "RUN CONTOURA".
  33.      To use it from the Workbench: Click its icon.
  34.      To exit, click the "EXIT" gadget or choose "QUIT" from the menu.
  35.  
  36.                                TO USE FAST  
  37.  
  38.  
  39.      (1)  Insert the function to be graphed in the "FUNCTION" gadget. 
  40.      
  41.      (2)  Insert the values (if needed) for any of the variables X-MINIMUM,
  42. X-MAXIMUM, Y-MINIMUM, Y-MAXIMUM, Z-MINIMUM, Z-MAXIMUM, SAMPLE-RT (Sample Rate)
  43. in their respective gadgets. 
  44.  
  45.      (3)  Click the "GRAPH" gadget.
  46.  
  47.           The function will be graphed on its own screen.
  48.  
  49.      IT IS IMPORTANT TO KNOW THAT THE EXPONENTIAL FUNCTION x^y IS TOO SLOW!!!
  50.      SO, IF YOU HAVE A TERM/FACTOR x^3, IT IS MUCH BETTER TO ENTER x*x*x
  51. INSTEAD OF x^3.  THE SAME HOLDS ANY OTHER POWERS OF COURSE.
  52.  
  53.      REMEMBER:
  54.  
  55.      (1)    Use only parentheses. No brackets are allowed.
  56.  
  57.      (2)    The function must be at most 100 characters long.
  58.  
  59.      (3)    This version does not support scientific notation.  Avoid the use
  60.             of large numbers with a lot of digits before/after the decimal 
  61.             point.
  62.  
  63.      (4)    Check the available functions and operators by choosing
  64.             "FUNCTIONS" from the menu.  Make sure that you are using the
  65.             right notation for your functions.
  66.  
  67.      (5)    To "CLEAR" ONE of the string gadgets, click into it and press
  68.             RIGHT-AMIGA-X.  Press "RESET" to clear ALL the string gadgets
  69.             involving the maxima and the minima of the 3 variables.
  70.  
  71.      (6)    You may use spaces between any expressions.  No problem.
  72.  
  73.      (7)    Lower or upper case letters are allowed anywhere.  The program
  74.             turns them all into upper case.
  75.  
  76.      (8)    For the sake of speed, I have omitted error messages for a whole
  77.             lot of nonsensical things that the user can insert.  
  78.  
  79.      (9)    CTRL-N gets you to the Workbench and CTRL-M gets you back to
  80.             CONTOURA.  If you are planning to work on the Workbench while
  81.             CONTOURA is running, make sure to run it with "RUN CONTOURA"
  82.             and not just "CONTOURA".
  83.  
  84.      (10)   When you raise a function to a power, make sure you enclose
  85.             the function in parentheses.  For example, you should use
  86.             (exp(1.89))^2 instead of exp(1.89)^2.  The same remark applies
  87.             to other similar situations.
  88.  
  89.      MENUS AND GADGETS:
  90.  
  91.      X-MINIMUM, X-MAXIMUM, Y-MINIMUN, Y-MAXIMUM:
  92.  
  93.           These are the max and min values that you are allowing for x and
  94.      y.  This means that the program will assume that you want to graph the
  95. function in the "FUNCTION" gadget by allowing x to lie between X-MINIMUM
  96. and X-MAXIMUM and y to lie between Y-MINIMUM and Y-MAXIMUM.  These values
  97. of x and y are definitely affecting the graph of the function.
  98.  
  99.      Z-MINIMUM, Z-MAXIMUM:
  100.  
  101.           These two extreme values for the variable z work only when you
  102. choose "SCALE" from the first menu.  The scaling of the function is important
  103. when you want to bring ALL THE COLORS (32) on the screen.  This might work
  104. just approximately sometimes.  Thus, you might get pretty different pictures
  105. with "SCALE" on compared to the corresponding pictures without choosing
  106. "SCALE".  We are referrring to differences in color of course.
  107.  
  108.      GRAPH:
  109.  
  110.      This gadget is covered below.  Look at the paragraph with the same
  111. heading.
  112.  
  113.      VIEW:
  114.  
  115.      This gadget allows you to view the picture that you have graphed.  It
  116. aslo brings you back to the GRAPHICS SCREEN where you might want to manipu-
  117. late the picture further.
  118.  
  119.      RESET:
  120.  
  121.      Clicking into this gadget, you get the original values for the maxima
  122. and the minima.  It might be helpful when you are lost in the labyrinth
  123. of numbers...
  124.  
  125.      Z-VAL:
  126.  
  127.           The program will try to compute for you the Z-MINIMUM and Z-MAXIMUM
  128. values.  Clicking the Z-VAL gadget will do just that.  However, as we said   
  129. above, these two values are taken into consideration only when the user 
  130. chooses "SCALE" from the first menu.
  131.  
  132.      SAMPLE_RT:  
  133.  
  134.      This is a VERY IMPORTANT GADGET.  It allows you to sample the graph.  
  135.      This means that you can get a ROUGH PICTURE of the actual graph of the
  136. function F(X,Y) by choosing a SAMPLE RATE GREATER THAN ZERO.  You really
  137. need to do this a lot because the graphing of F(X,Y) can be much faster with
  138. sample rates 2,4,6, etc.  Thus, you keep graphing at these rates until you
  139. arrive at a graph that you would really like to see pixel by pixel.  This is
  140. when you choose 0 sample rate.
  141.  
  142.      FUNCTIONS:
  143.  
  144.           When you choose this item from the menu, you get a table of all the
  145. functions that you can use in the function gadget.  MAKE SURE YOUR FUNCTIONS
  146. ARE MATHEMATICALLY SOUND.  The program will rarely abort its graphing.  For
  147. example, it will not abort at the evaluation of a logarithm of a negative
  148. number or the square root of a negative number.
  149.  
  150.      SCALE:
  151.  
  152.      When you choose "SCALE" from the first menu, you are actually telling
  153. the program to calibrate the function values so that all 32 colors will be
  154. on the screen at once.  This might be desirable sometimes, but not necessarily
  155. always.  Remember, the "SCALE" feature of the program does make use of the
  156. Z-MINIMUM and the Z-MAXIMUM values above.  These can be calculated (approxi-
  157. mately of course) by the program itself.  See "Z-VAL" above.  
  158.  
  159.      ZOOM IN:
  160.  
  161.      When you choose this feature, you are telling the program to fill the
  162. screen with an area (piece) of the picture that you have chosen.  To pick
  163. this area, click into the screen and drag your mouse until the rectangle that
  164. is formed covers the portion of the screen that you want enlarged.  Then
  165. choose "GRAPH" from the menu.
  166.  
  167.      ZOOM OUT:
  168.  
  169.      This feature allows you to BRING IN MORE OF THE SUBJECT.  You can choose
  170. a value between 0 and 10.  This can be ANY NUMBER in that interval.  For
  171. example, .45 is perfectly all right.  This ZOOM OUT NUMBER must be entered
  172. in the upper string gadget of the requester that will appear when you choose
  173. "ZOOM IN".  Usually, small numbers between 0 and 2 will do the job.  After
  174. you choose such a number, you can re-graph the function by choosing "GRAPH"
  175. from the menu.
  176.  
  177.      CENTER:
  178.  
  179.      This feature allows you to bring the center of the screen at any point
  180. of the picture that you choose.  For example, suppose that you want the
  181. function graphed so that its center is the middle point of the right hand
  182. side of your screen.  Well, choose "CENTER" and click once at that point.
  183. Then choose "GRAPH" from the menu.  Voila!!!  This way you can move on into
  184. the world from minus infinity to plus infinity horizontally and vertically!!!
  185.  
  186.      PALETTE:
  187.  
  188.      This is a beautiful flowing palette!  As soos as it appears, you will
  189. see the "R" gadget activated.  This is the RED color.  As you know, color
  190. comes in three numbers: R G B.  These are between 0 and 15 each.  Thus, the
  191. triplet F00 represents the pure Red color: 15 Red, 0 Green, 0 Blue.  Naturally,
  192. these are numbers in base 16.  The triplet 00F is pure Blue and the triplet
  193. FFF is White.  Now, let's see what is happening with the palette.  When the
  194. gadget "R" (RED) is clicked, what you see on your palette is "THE AMOUNT
  195. OF *** RED *** IN EACH ONE OF THE 32 COLORS OF THIS SCREEN".  Although the
  196. picture might not contain all these colors, they are there.  They have been
  197. assigned by you or by the program.  When you click the "G" (GREEN) gadget,
  198. you see again in each rectangle the amount of green in each color, and the 
  199. same situation appears with the blue gadget.
  200.      Now, click your mouse into the palette and start moving it around (still
  201. clicked) left and right and up and down.  Beautiful!!!  What you see is a
  202. continuous change of THE COLOR COMPONENT that you have chosen.  This means
  203. that if "R" has been clicked, you are seeing a continuous change in the Red
  204. component of each color on the palette.  It is the LEFT MOUSE BUTTON that
  205. you are using here.
  206.      While the palette is out, click "CANCEL" to cancel any change that you
  207. have made, "DEFAULT" to bring in the default palette, and "OK" to keep any-
  208. thing that you have done to the palette.
  209.      
  210.      GRAPH: (First Screen Gadget and Second Screen Menu Item)
  211.  
  212.      Well, this item will graph your function.  In order to STOP the graph
  213. (something you will need to do from time to time), just press the "ESCAPE
  214. KEY".  If the key does not obey, click the left mouse button first to activate
  215. the screen.
  216.      As you will notice, the background color does not participate in the
  217. painting of the picture.  I did this, because I feel that if that color was
  218. all over the picture, it would be very hard for the user to change it!  For
  219. example, if the background color was black and the picture contained 3000
  220. black pixels, how would you change the background and leave those pixels
  221. black?  You would have to work on those pixels one by one!
  222.      Thus, 31 colors (maximum) are painting your picture and you are free
  223. to change your frame color to anything else without disturbing the rest of
  224. the picture.
  225.  
  226.      CYCLING:
  227.  
  228.      To CYCLE any of your pictures, just press the "TAB KEY".  The SAME KEY
  229. will STOP the cycling.  Again, if it does not obey, just click the left
  230. mouse button to activate the screen.  I have allowed the complete cycling
  231. to a maximum of 6 times.  Cycling takes up a lot of memory.  Also, I have
  232. arranged it so that the background color (the frame color) does not cycle.  I
  233. think that the cycling of that color is very disturbing.  
  234.  
  235.      You can go from the GRAPHICS SCREEN to the PANEL SCREEN by pressing
  236. the <RETURN> key.  Again, whenever a key does not obey, just click the
  237. left mouse button to activate the screen (or the window).
  238.      The center of your screen is the point X = 0, Y = 0.  The left and
  239. right edges have X-MINIMUM and X-MAXIMUM values, repsectively.  The same for
  240. the Y values.
  241.      You can also bring the palette out by pressing "p" or "P".
  242.  
  243.      PROBLEMS:  
  244.  
  245.      If you only get just one color on your screen, your function does not
  246. take a wide range of values.  Try "Z-VAL" and "SCALE", or multiply your
  247. function by a large enough number to allow for more values (and color).
  248.                       
  249.                              ***  <<<-->>>  ***
  250.  
  251.      This is a SHAREWARE copyrighted program.  If you find it useful, 
  252. please send $15.00 to the address at the end.
  253.      With this contribution you will receive more programs written by the
  254. author.
  255.      Feel free to distribute this program, with the doc intact, to any
  256. bulletin boards and other non-profit establishments in the US and abroad.
  257.      These include PLink, Compuserve, GEnie, Delphi, etc.
  258.      The inclusion of this program, or any part of it, in any form in a 
  259. commercial package, or its use for commercial purposes, requires the 
  260. written permission of the author.
  261.      
  262.      The author bears no responsibility for errors that might occur while the
  263. user uses this program.  A lot of efforts have been made to deliver to you
  264. a responsible program.
  265.  
  266.      Other programs by the author:
  267.  
  268.           PALETTA.ARC    (Color Mixing, Modifying IFF's, Random Colors)
  269.           DUHERM26.ARC   (Great Directory Utility.  Macros, Parameters, etc)
  270.           SIMPLICA.ARC   (The Simplex Method Of Linear Programming)
  271.           ROST.ARC       (Reports On Storage And Tasks.  Useful!)
  272.           LISTA11.ARC    (Very Convenient File Lister.  Alpha, Bytes, etc.)
  273.           SCRIPTA.ARC    (Online!-PCP Script Maker.  Easy To Use!)
  274.           CALCULA.ARC    (17 Functions Expression Parser And Evaluator)
  275.           ARCHA.ARC      (ARC-PAK-ZOO Utility Plus 9 Extra Utility Gadgets)
  276.           FORMULA!.ARC   (Great 3D-Grapher In C.  Colors, Parsing, etc.)
  277.           FINANCA.ARC    (Mortgage, Annuity, Compound Interest Program)
  278.  
  279.      For support on the HERMES programs, call:
  280.  
  281.          HERMES BBS (Tampa, FL, USA)
  282.          813-985-7624
  283.          1400 Files, 2400, PCP, Good Message Base, PRIVATE
  284.  
  285.      Also, you may call (voice) or write:
  286.  
  287.          A. G. Kartsatos (PLink = HERMES)
  288.          8524 Caladesi Island Drive
  289.          Tampa, FL 33637, USA
  290.          813-988-2146
  291.  
  292.