Figure Asymptote opacity -- 013
🔗This picture comes from the Asymptote gallery of topic opacity

Show opacity/fig0130.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Opacity
Tags : #Opacity
import edvenn_pi; // Exclusion: Produces an effect similar to that of the Difference mode but lower // in contrast. Painting with white inverts the backdrop color; painting // with black produces no change. string blend="Exclusion"; size(10cm,0); path [] edvenn= EdVenn(4); pen [] fillp= new pen[]{black, red, green, blue}; pen p=linewidth(1mm); for (int i=0; i<4; ++i) { fillp[i]=fillp[i]+opacity(.5,blend=blend); filldraw(edvenn[i], fillpen=fillp[i], drawpen=linewidth((i+1)*mm/2)); } shipout(bbox(2mm,invisible),"pdf");