Difference between revisions of "Asymptote: Useful commands and their Output"
Line 7: | Line 7: | ||
'''Example 1:''' | '''Example 1:''' | ||
− | + | dot((20,0)); | |
'''Output 1:''' | '''Output 1:''' | ||
[[Image:Figure2.gif]] | [[Image:Figure2.gif]] | ||
Line 14: | Line 14: | ||
'''Example 2:''' | '''Example 2:''' | ||
− | + | draw((0,0)--(50,0),BeginArrow); | |
+ | draw((0,-10)--(50,-10),MidArrow); | ||
+ | draw((0,-30)--(50,-30),Arrows); | ||
'''Output 2:''' | '''Output 2:''' | ||
[[Image:Figure3.gif]] | [[Image:Figure3.gif]] | ||
Line 21: | Line 23: | ||
'''Example 3:''' | '''Example 3:''' | ||
− | + | draw((0,0)--(50,0)); | |
+ | arrow((30,0),dir(180),green); | ||
'''Output 3:''' | '''Output 3:''' | ||
[[Image:Figure4.gif]] | [[Image:Figure4.gif]] |
Revision as of 14:59, 3 February 2007
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));
Example 2:
draw((0,0)--(50,0),BeginArrow); draw((0,-10)--(50,-10),MidArrow); draw((0,-30)--(50,-30),Arrows);
Example 3:
draw((0,0)--(50,0)); arrow((30,0),dir(180),green);
Example 4:
Example 5:
Example 6:
Example 7:
Example 8: