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
___________________________________________________________________________________

Reply via email to