Sans doute un problème déjà évoqué mais je n'ai retrouvé.
Voici un code qui compilait sans problème il y a deux ans mais qui me procure une erreur aujourd'hui et qui d'ailleurs ne passe pas sur le forum.
Code : Tout sélectionner
size(6cm);
defaultpen(fontsize(11pt));
path p1=(-3,0)..(0,1)..(1,0)..(0,-1)..cycle;
path p2=reflect((0,0), (0,1))*p1;
filldraw(p1, lightblue+opacity(.7));
filldraw(p2, lightblue+opacity(.7));
draw(p1^^p2);
// path p=(-3,0)..(0,1)..(1,0)
draw((-3.5,0)..(0,1.5)..(3.5,0)..(0,-1.5)..cycle);
label("$E$", (-3.5,1));
label("$A$", (-2,0));
label("$B$", (2,0));
label("Diagramme de Venn", (0,-2));
Code : Tout sélectionner
$ asy -f pdf M1201-1-union.asy
Error: /undefined in .setopacityalpha
Operand stack:
   0.7
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   2046   1   3   %oparray_pop   2045   1   3   %oparray_pop   --nostringval--   2025   1   3   %oparray_pop   1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:967/1684(ro)(G)--   --dict:0/20(G)--   --dict:83/200(L)--   --dict:177/300(L)--   --dict:43/200(L)--
Current allocation mode is local
Current file position is 49657
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
/usr/share/asymptote/plain_shipout.asy: 102.11: runtime: shipout failed
Ma version est la 2.47 et celle de Ghostscript la 9.26 le tout sous Fedora30.
J'aimerais juste bien comprendre.
Bruno


 
                                           