The following code draws a path array twice with/without a pen array. When a pen array is used, asymptote performs smooth shading between the paths. In contrast, only path edges are drawn without providing an pen array. The two plots should overlap with eachother precisely since the same paths are used. However, they don't, as shown in the attached picture (ellipseshade1.png). settings.outformat="png"; settings.render=10; size(5cm); import graph; pen[] pens = new pen[] {white, red}; int lastpath...
I tried to plot a cirlce with radial shading, in which the center is filled with transparent red color with opacity=0.5 and the outer area is filled with black with opacity=1. The code is as follows: settings.outformat="pdf"; size(5cm); // define a circle path cir = circle((0,0), 2); // radial shade radialshade(cir, stroke=false, pena=red+opacity(0.5), a=(0,0), ra=0, extenda=true, penb=black+opacity(1), b=(0,0), rb=2, extendb=true ); shipout(bbox(1mm)); However, in the output pdf, the entire cirlce...
I cannot manage to generate any output (either eps or pdf) with the following code (test.asy): import three; real rC = 1; draw(shift(-5,3,0)scale3(rC)unitsphere,surfacepen=yellow); Neither of these commands: "asy test.asy", "asy -f pdf test.asy", or "asy -tex pdflatex test.asy" works. And no error messages were printed. All I get is a window showing the correct drawing, as shown in the attachment. However, when I simpy drawing a 2D line in the test.asy, I can get the right pdf output. The window...