[metapost] Designing Brahmi DDHA

Laurent Méhats laurent.mehats at gmail.com
Tue Jul 31 14:59:48 CEST 2012


Le 31/07/2012 14:53, Laurent Méhats a écrit :
> Hello,
>
> Here is a vflip macro that should take anything drawable as an argument.

Sorry, I meant any path (including single points).

> vardef vflip (expr pth)=
>    picture pct; pair ctr;
>    pct:=nullpicture;
>    addto pct doublepath pth;
>    ctr:=.5[llcorner pct, urcorner pct];
>    pth shifted -ctr yscaled -1 shifted ctr
> enddef;
>
> beginfig (0)
>    path foo;
>    foo:=halfcircle scaled 100;
>    draw vflip (foo) withcolor red;
>    draw foo withcolor green;
> endfig;
>
> Regards,
> Laurent Méhats


-- 
Laurent Méhats



More information about the metapost mailing list