ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* no greyscales in MetaFun any more?
@ 2022-07-17 19:52 Henning Hraban Ramm via ntg-context
  2022-07-17 21:46 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-07-17 19:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

Hi Hans et al.,

all my greys are black:

% MWE:
\startMPpage
fill unitsquare scaled 10mm withcolor .5;
\stopMPpage

% real life example:
\startMPpage
% grayscale squares
for s=5 step 5 until 95:
   numeric c; c := s/100;
   fill unitsquare scaled 5mm shifted (0,(s-5)*mm) withcolor c;
   label.lft(100-s, (0, (s-2.5)*mm));
endfor;
\stopMPpage

This used to work with previous LMTX versions.

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

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

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

* Re: no greyscales in MetaFun any more?
  2022-07-17 19:52 no greyscales in MetaFun any more? Henning Hraban Ramm via ntg-context
@ 2022-07-17 21:46 ` Hans Hagen via ntg-context
  2022-07-21 15:16   ` Alan via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2022-07-17 21:46 UTC (permalink / raw)
  To: Henning Hraban Ramm via ntg-context; +Cc: Hans Hagen

On 7/17/2022 9:52 PM, Henning Hraban Ramm via ntg-context wrote:
> Hi Hans et al.,
> 
> all my greys are black:
> 
> % MWE:
> \startMPpage
> fill unitsquare scaled 10mm withcolor .5;
> \stopMPpage
> 
> % real life example:
> \startMPpage
> % grayscale squares
> for s=5 step 5 until 95:
>    numeric c; c := s/100;
>    fill unitsquare scaled 5mm shifted (0,(s-5)*mm) withcolor c;
>    label.lft(100-s, (0, (s-2.5)*mm));
> endfor;
> \stopMPpage
> 
> This used to work with previous LMTX versions.
fixed in next upload

-----------------------------------------------------------------
                                           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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: no greyscales in MetaFun any more?
  2022-07-17 21:46 ` Hans Hagen via ntg-context
@ 2022-07-21 15:16   ` Alan via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Alan via ntg-context @ 2022-07-21 15:16 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Alan

On Sun, 17 Jul 2022 23:46:36 +0200
Hans Hagen via ntg-context <ntg-context@ntg.nl> wrote:

> On 7/17/2022 9:52 PM, Henning Hraban Ramm via ntg-context wrote:
> > Hi Hans et al.,
> > 
> > all my greys are black:
> > 
> > % MWE:
> > \startMPpage
> > fill unitsquare scaled 10mm withcolor .5;
> > \stopMPpage
> > 
> > % real life example:
> > \startMPpage
> > % grayscale squares
> > for s=5 step 5 until 95:
> >    numeric c; c := s/100;
> >    fill unitsquare scaled 5mm shifted (0,(s-5)*mm) withcolor c;
> >    label.lft(100-s, (0, (s-2.5)*mm));
> > endfor;
> > \stopMPpage
> > 
> > This used to work with previous LMTX versions.
> fixed in next upload

Is this related?
(regression: uniqueMPgraphic drops color)


\startuniqueMPgraphic{red}
draw textext("red?") withcolor red ;
\stopuniqueMPgraphic

\starttext

\startMPcode
draw textext("red!") withcolor red ;
\stopMPcode

\uniqueMPgraphic{red}

\stoptext





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

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

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-17 19:52 no greyscales in MetaFun any more? Henning Hraban Ramm via ntg-context
2022-07-17 21:46 ` Hans Hagen via ntg-context
2022-07-21 15:16   ` Alan 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).