ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MetaPost cutdraw
@ 2022-07-05 22:10 Henning Hraban Ramm via ntg-context
  2022-07-06  5:10 ` Aditya Mahajan via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-07-05 22:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

Hi, I’m trying to understand MetaPost better.

I’d like to draw a fat line that’s cut at its end points.
I learned, “cutdraw” should do the trick, but I get a parallelogram 
instead of a rectangle.

What’s wrong?

Hraban


\startMPpage

draw (0,20)--(20,20) withpen pensquare scaled 10;

cutdraw (0,0)--(20,0) withpen pensquare scaled 10;

% just to show start and end
draw (0,-10)--(0,30);
draw (20,-10)--(20,30);

\stopMPpage
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-06 21:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05 22:10 MetaPost cutdraw Henning Hraban Ramm via ntg-context
2022-07-06  5:10 ` Aditya Mahajan via ntg-context
2022-07-06  7:15   ` Hans Hagen via ntg-context
2022-07-06  9:27     ` Henning Hraban Ramm via ntg-context
2022-07-06 21:04       ` Mikael Sundqvist via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).