home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-06-15 | 1.1 KB | 41 lines | [TEXT/DWat] |
- % A demonstration script for Asymptote
-
-
- % ••• To run the demo select:
- % "Run Recorder"
- % from the "Script" menu.
-
-
-
- if undefined demoNumber then set demoNumber 1 $
- else if demoNumber 12 = then set demoNumber 1 $
- else set demoNumber demoNumber 1 +
-
- % Ask which demo to run
- set demoNumber ?Which demo (1 through 12) would you like to see?
-
- if demoNumber 1 < demoNumber 12 > + then stop
-
- % Run the demo script (\demoNumber inserts the number into the script name)
- Demo\demoNumber
-
- % Close that script now that we are done with it
- close Demo\demoNumber
-
- set response true
- ask response OK Cancel ?• Click with the command key pressed to zoom in. $
- • Click with command && option pressed to zoom out. $
- • Click the mouse with no keys pressed when you are done examining the graph.
-
- if response true = then cursor
-
- set PrintIt false % Make false the default choice
- ask PrintIt Yes No Do you want to print the graph?
- if PrintIt then print % Print the graph if PrintIt is true
-
- fullscreen no
-
- set response true
- ask response OK Quit ?To try a different demo select Run Recorder from the Script menu.
- if response false = then quit
-