Re: bug with clip
luigi scarso <[email protected]> Sat, 22 Aug 2020 13:29:29 +0200
| Newsgroups | gmane.comp.tex.metapost |
|---|---|
| Message-ID | <CAG5iGsDBNtFBzBi8SNFtHUA01OiEW+zK9D0u7Qyx-OaNgzcrtA@mail.gmail.com> |
On Tue, Aug 18, 2020 at 3:38 PM Anton Petrunin = Антон Петрунин < [email protected]> 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 -- http://tug.org/metapost/