ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Some macros (Metafun)
@ 2019-08-09  8:57 Fabrice Couvreur
  2019-08-09 11:12 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Couvreur @ 2019-08-09  8:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
In the Metafun manual, Hans uses macros like drawpath p ; drawcontrollines
p ; drawpoints p ; drawcontrolpoints p ...
How to use them in a document ?
Where to find source codes ?
For example, the following code does not work :

\starttext
\startuseMPgraphic{path}
   path p ; p := (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ;
\stopuseMPgraphic

\startMPcode
  p := p .. cycle ; swappointlabels := true ;
  drawpath p ;
\stopMPcode
\stoptext


Thank you
Fabrice

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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Some macros (Metafun)
  2019-08-09  8:57 Some macros (Metafun) Fabrice Couvreur
@ 2019-08-09 11:12 ` Hans Hagen
  2019-08-11 22:40   ` Fabrice Couvreur
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2019-08-09 11:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 8/9/2019 10:57 AM, Fabrice Couvreur wrote:
> Hello,
> In the Metafun manual, Hans uses macros like drawpath p ; 
> drawcontrollines p ; drawpoints p ; drawcontrolpoints p ...
> How to use them in a document ?
> Where to find source codes ?
> For example, the following code does not work :
> 
> \starttext
> \startuseMPgraphic{path}
>     path p ; p := (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ;
> \stopuseMPgraphic
> 
> \startMPcode
>    p := p .. cycle ; swappointlabels := true ;
>    drawpath p ;
> \stopMPcode
> \stoptext
\starttext

\startMPcode
     path p ; p := (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ;
     drawpath p ;
     drawpoints p ;
     drawpointlabels p ;
     drawcontrolpoints p ;
     drawcontrollines p ;
\stopMPcode

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Some macros (Metafun)
  2019-08-09 11:12 ` Hans Hagen
@ 2019-08-11 22:40   ` Fabrice Couvreur
  2019-08-11 23:41     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Couvreur @ 2019-08-11 22:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi Hans,
Sorry but I did not see your email.
What is the default color used to draw the path p ?
Thank you.

Le ven. 9 août 2019 à 13:12, Hans Hagen <j.hagen@xs4all.nl> a écrit :

> On 8/9/2019 10:57 AM, Fabrice Couvreur wrote:
> > Hello,
> > In the Metafun manual, Hans uses macros like drawpath p ;
> > drawcontrollines p ; drawpoints p ; drawcontrolpoints p ...
> > How to use them in a document ?
> > Where to find source codes ?
> > For example, the following code does not work :
> >
> > \starttext
> > \startuseMPgraphic{path}
> >     path p ; p := (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ;
> > \stopuseMPgraphic
> >
> > \startMPcode
> >    p := p .. cycle ; swappointlabels := true ;
> >    drawpath p ;
> > \stopMPcode
> > \stoptext
> \starttext
>
> \startMPcode
>      path p ; p := (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ;
>      drawpath p ;
>      drawpoints p ;
>      drawpointlabels p ;
>      drawcontrolpoints p ;
>      drawcontrollines p ;
> \stopMPcode
>
> \stoptext
>
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Some macros (Metafun)
  2019-08-11 22:40   ` Fabrice Couvreur
@ 2019-08-11 23:41     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2019-08-11 23:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Fabrice Couvreur

On 8/12/2019 12:40 AM, Fabrice Couvreur wrote:
> Hi Hans,
> Sorry but I did not see your email.
> What is the default color used to draw the path p ?

     drawlineoptions   (withpen pencircle scaled 1.0 drawoptionsfactor 
withcolor .5white) ;
     drawpointoptions  (withpen pencircle scaled 4.0 drawoptionsfactor 
withcolor   black) ;
     drawcontroloptions(withpen pencircle scaled 2.5 drawoptionsfactor 
withcolor   black) ;
     drawpathoptions   (withpen pencircle scaled 5.0 drawoptionsfactor 
withcolor .8white) ;


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2019-08-11 23:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-09  8:57 Some macros (Metafun) Fabrice Couvreur
2019-08-09 11:12 ` Hans Hagen
2019-08-11 22:40   ` Fabrice Couvreur
2019-08-11 23:41     ` Hans Hagen

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