ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* About the macro ulcircle
@ 2015-01-09 19:07 Fabrice Couvreur
  2015-01-09 19:23 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2015-01-09 19:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 800 bytes --]

Hi,
I discovered some macro Metafun particular.
I then wanted to outline, but it does not fit with the boundary of the
quadrant.
Can I have some explanation ?
Best regards,
Fabrice

\starttext
\startMPcode
u:=1cm ;
pickup pencircle scaled 1pt ;
fill ulcircle scaled 8u withcolor lightgray ;
fill llcircle scaled 2u shifted (1u,0) withcolor lightgray ;
fill lrcircle scaled 4u shifted (1u,1u) withcolor lightgray ;
fill urcircle scaled 6u shifted (0,1u) withcolor lightgray ;
label.lft(btex $x$ etex, (0,0.5u)) ;
fill unitsquare scaled 1u withcolor lightgray ;
draw unitsquare scaled 1u ;
draw (-4u,0)--(0,0) dashed evenly ;
draw (0,1u)--(0,4u) dashed evenly ;
draw (1u,1u)--(3u,1u) dashed evenly ;
draw (1u,0)--(1u,-1u) dashed evenly ;
draw (-4u,0){up}..(0,4u)..(3u,1u){down} ;
\stopMPcode
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1489 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: About the macro ulcircle
  2015-01-09 19:07 About the macro ulcircle Fabrice Couvreur
@ 2015-01-09 19:23 ` Hans Hagen
  2015-01-09 22:12   ` Fabrice
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2015-01-09 19:23 UTC (permalink / raw)
  To: ntg-context

On 1/9/2015 8:07 PM, Fabrice Couvreur wrote:
>
> Hi,
> I discovered some macro Metafun particular.
> I then wanted to outline, but it does not fit with the boundary of the
> quadrant.
> Can I have some explanation?
> Best regards,
> Fabrice
>
> \starttext
> \startMPcode
> u:=1cm ;
> pickup pencircle scaled 1pt ;
> fill ulcircle scaled 8u withcolor lightgray ;
> fill llcircle scaled 2u shifted (1u,0) withcolor lightgray ;
> fill lrcircle scaled 4u shifted (1u,1u) withcolor lightgray ;
> fill urcircle scaled 6u shifted (0,1u) withcolor lightgray ;
> label.lft(btex $x$ etex, (0,0.5u)) ;
> fill unitsquare scaled 1u withcolor lightgray ;
> draw unitsquare scaled 1u ;
> draw (-4u,0)--(0,0) dashed evenly ;
> draw (0,1u)--(0,4u) dashed evenly ;
> draw (1u,1u)--(3u,1u) dashed evenly ;
> draw (1u,0)--(1u,-1u) dashed evenly ;
> draw (-4u,0){up}..(0,4u)..(3u,1u){down} ;
> \stopMPcode
> \stoptext

think different ...

\starttext
\startMPcode
u:=1cm ;
pickup pencircle scaled 1pt ;
path p ; p := ulcircle scaled 8u                ; fill p withcolor red ;
path q ; q := llcircle scaled 2u shifted (1u,0) ; fill q withcolor green ;
path r ; r := lrcircle scaled 4u shifted (1u,1u); fill r withcolor blue ;
path s ; s := urcircle scaled 6u shifted (0,1u) ; fill s withcolor yellow ;
label.lft(btex $x$ etex, (0,0.5u)) ;
fill unitsquare scaled 1u withcolor lightgray ;
draw unitsquare scaled 1u ;
draw (subpath (2,3) of p) dashed evenly ;
draw (subpath (2,3) of q) dashed evenly ;
draw (subpath (2,3) of r) dashed evenly ;
draw (subpath (2,3) of s) dashed evenly ;
draw (subpath (4,5) of p) dashed evenly withcolor green ;
\stopMPcode
\stoptext

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: About the macro ulcircle
  2015-01-09 19:23 ` Hans Hagen
@ 2015-01-09 22:12   ` Fabrice
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice @ 2015-01-09 22:12 UTC (permalink / raw)
  To: ntg-context

Dear Hans,
I do not have enough back from Metapost to think differently and I'm not 
you! :)
Fabrice
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2015-01-09 22:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-09 19:07 About the macro ulcircle Fabrice Couvreur
2015-01-09 19:23 ` Hans Hagen
2015-01-09 22:12   ` Fabrice

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).