Asymptote: Useful commands and their Output

Revision as of 15:59, 3 February 2007 by Hmmm (talk | contribs)
Asymptote (Vector Graphics Language)
Getting Started - Basics - Drawing - Labeling - Filling - Useful functions - Examples - Macros and Packages

Help - Reference - Advanced Asymptote - 3D Graphics - CSE5 Package - How to

For each of the following, we have put a blue dot at the origin in order to indicate relative location of the output on the coordinate plane. In other words, assume that before each of the examples below is the command

dot((0,0),blue);.

Example 1:

dot((20,0));

Output 1: Figure2.gif


Example 2:

draw((0,0)--(50,0),BeginArrow);
draw((0,-10)--(50,-10),MidArrow);
draw((0,-30)--(50,-30),Arrows);

Output 2: Figure3.gif


Example 3:

draw((0,0)--(50,0));
arrow((30,0),dir(180),green);

Output 3: Figure4.gif


Example 4:

Output 4: Figure5.gif


Example 5:

Output 5: Figure6.gif


Example 6:

Output 6: Figure7.gif


Example 7:

Output 7: Figure8.gif


Example 8:

Output 8: Figure9.gif