[metapost] buildcycle

Pétiard François petiard.francois at free.fr
Mon Apr 19 07:11:09 CEST 2010


Le 18/04/2010 16:39, js stock a écrit :

> beginfig(8);
> numeric a,b,c,d;
> a=.5in; b=.7in; c=.3in; d=.5in;
> z1=-z3=(a,0); z2=-z4=(0,b);
> path p,q;
> p=z1..z2..z3..z4..cycle;
> q=p shifted (-1cm,0);
> draw p;
> draw q;
> fill buildcycle(p,q) withcolor black;
> endfig;
> end
>

Try:

fill buildcycle(reverse(p),q) withcolor black;

François



More information about the metapost mailing list