Re: [NTG-context] Some macros (Metafun)

2019-08-11 Thread Hans Hagen

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
___


Re: [NTG-context] Some macros (Metafun)

2019-08-11 Thread Fabrice Couvreur
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  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
>
> ___
>
___
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
___


Re: [NTG-context] Some macros (Metafun)

2019-08-09 Thread Hans Hagen

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
___