manpagez: man pages & more
info asymptote
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1 Drawing in batch mode

To draw a line from coordinate (0,0) to coordinate (100,100), create a text file test.asy containing

draw((0,0)--(100,100));

Then execute the command

asy -V test

Alternatively, MSDOS users can drag and drop test.asy onto the Desktop asy icon (or make Asymptote the default application for the extension asy).

This method, known as batch mode, outputs a PostScript file test.eps. The -V option opens up a PostScript viewer window so you can immediately view the result:

diagonal

The -- connector joins the two points (0,0) and (100,100) with a line segment.


© manpagez.com 2000-2025
Individual documents may contain additional copyright information.