[metapost] bug with clip

luigi scarso luigi.scarso at gmail.com
Sat Aug 22 13:29:29 CEST 2020


On Tue, Aug 18, 2020 at 3:38 PM Anton Petrunin = Антон Петрунин <
anton-petrunin at tuta.io> wrote:

> There is a bug with clip that is described here:
>
> https://tex.stackexchange.com/questions/558461/
>
> here is copy of the text:
>
> It seems that
>
>     clip currentpicture to p;
>
> not only clips the picture to `p`, but also sets its the bounds to
> somewhat random.
>
> Here is a MWE:
>
>     filenametemplate "%j-%1c.png";
>     outputformat := "png";
>     beginfig(1);
>     save u;
>     u:=1cm;
>
>     draw (-1,-1)*u--(-10,10)*u--(10,10)*u--cycle withcolor (87, 1mm,
> -.5bp);
>     clip currentpicture to
> (-10,-10)*u--(-10,0)*u--(10,0)*u--(10,-10)*u--cycle;
>
>     endfig;
>     end
>
>
ok, I will see it.

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/metapost/attachments/20200822/26d89c0b/attachment.html>


More information about the metapost mailing list.