ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* transparent metafun colors turn nearly black
@ 2006-09-23 15:02 Sanjoy Mahajan
  2006-09-23 17:28 ` Peter Rolf
  0 siblings, 1 reply; 9+ messages in thread
From: Sanjoy Mahajan @ 2006-09-23 15:02 UTC (permalink / raw)


Just for (meta)fun, I tried a few experiments with transparent colors.
The example below gives a black circle instead of a red one.  Is it that
transparent colors aren't part of metafun -- which I can easily live
with since color printing is too expensive still, alas -- or have I
omitted an essential command?

==================== cut here ====================
\runMPgraphicstrue
\setupcolors[state=start]
\starttext
\startreusableMPgraphic{a}
% _inline_specials_ := true; % had hopes for this line, but no luck
% next line taken as an example from mp-spec.mp
fill fullcircle scaled 10cm withcolor transparent(8,.3,red);
\stopreusableMPgraphic

\placefigure[force,none]{}{\reuseMPgraphic{a}}
\stoptext
==================== cut here ====================

The metapost output (testfile-mpgraph.1) always contains the following
color setting, no matter what arguments I pass to transparent() :

 0.123 0.003 0.001 setrgbcolor

Which is close to black.

(This is all with ConTeXt 2006.08.08.  The live ConTeXt gives a square
saying "undefined".)

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   -- Bertrand de Jouvenal

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

end of thread, other threads:[~2006-09-29  8:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-23 15:02 transparent metafun colors turn nearly black Sanjoy Mahajan
2006-09-23 17:28 ` Peter Rolf
2006-09-23 17:59   ` Sanjoy Mahajan
2006-09-23 18:22     ` Peter Rolf
2006-09-23 20:00       ` Taco Hoekwater
2006-09-24  3:20         ` Sanjoy Mahajan
2006-09-25  7:52           ` Mojca Miklavec
2006-09-25 10:58             ` Sanjoy Mahajan
2006-09-29  8:54               ` Patrick Gundlach

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