I'd like to use Asymptote to compose an existing EPS file and draw some stuff onto it. I'm doing this using the suggested method of using label() and graphic() to place the EPS file on the canvas. The problem is that the imported graphics, being treated as a label, stay on top of all drawing that is done afterwards.
Let's say I have an EPS file generated using the following Asymptote file foo.asy (in my case the EPS actually contains a raster image, so I can't just include the commands to create the EPS in my final Asymptote file):
fill(circle((0, 0), 10), blue + white);
And now I include the EPS file from the following Asymptote file bar.asy:
label(graphic("foo.eps"), (0, 0));
draw((-10, -10) -- (10, 10), black + 2);
This results in the blue circle being drawn on top of the black line.
Is there either a way to somehow draw ontop of a label or is there another way to include an EPS file without using label()?
layer()command? – Charles Staats Oct 09 '15 at 21:12