\documentclass{article}
\usepackage{asymptote}
\begin{document}
\begin{asy}
size(200);
picture pic;
picture fig;
filldraw(pic,unitcircle,green);
filldraw(fig,unitsquare,red);
// 将两个图形添加到当前画布,并指定位置
add(pic); // 默认位置 (0,0)
add(shift(2,0)*fig); // 将红色正方形向右移动2个单位
\end{asy}
\end{document}
编译完成了不出图像,是哪里有问题了?