|Asymptote (Vector Graphics Language)|
|Getting Started - Basics - Drawing - Reference - Examples - Macros and Packages - Advanced Asymptote - 3D Graphics - Help|
As explained in Asymptote: Drawing, you can create closed objects such as:
Now introducing the fill() command. You would fill this triangle with green by the following:
Note how there is no outline. To create an outline and fill, without making two different statements, use the filldraw() command. Like the order of filldraw, you put the color of the fill before the draw.
filldraw(origin--(5,0)--(3,4)--cycle, green, red+linewidth(1));