ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: shading in metapost
Date: Thu, 24 Jan 2008 09:15:17 +0100	[thread overview]
Message-ID: <E0EF1C54-F1A0-4D97-A7CB-17D619E70BCC@uni-bonn.de> (raw)
In-Reply-To: <608bfe540801161422w67c44ce3pd008f7e4778cc2be@mail.gmail.com>


On Jan 16, 2008, at 11:22 PM, John Luciani wrote:

> There is some information on doing transparencies in
> METAPOST at http://www-math.univ-poitiers.fr/~phan/metalpha.html
>
> Using the code at the above link you should be able to produce
> the effect in your jpeg.
>
> (* jcl *)

John,

I never thanked you for your message; sorry about that! Unless I'm  
missing something, this page is just about transparency, but that  
works quite well in metafun; it was the combination of transparency  
and shading which I couldn't get right.


On Jan 24, 2008, at 1:28 AM, Mojca Miklavec wrote:
>
> In theory possible, but in practice not implemented in metafun. But  
> see
>    http://www.fauskes.net/media/pgf/pgfmanualCVS2008-01-23.pdf
> It might satisfy your needs. (Impressive!)
>
> Mojca

Thanks, Mojca, that's what I suspected. For the time being, I prefer  
metafun just because I know a little bit about it (and almost nothing  
about tikz). I have solved the problem at hand by drawing ten  
instances of a very transparent black circle on top of each other and  
increasing the scale of the pencircle slightly at every run. Which  
leads me to one last question: I wanted to be clever and do it in a  
for-loop like this:

  for i=1 upto 10:
  	pickup pencircle scaled (i*0.5) pt ;
  	draw fullcircle scaled 5mm withcolor transparent (1,0.04,black) ;
  endfor ;

Is this because the expression "pencircle scaled" expects a "numeric  
primary" as argument? And is there any way around this?

All best, and thanks to all

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


  reply	other threads:[~2008-01-24  8:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16 19:07 Thomas A. Schmitz
2008-01-16 22:22 ` John Luciani
2008-01-24  8:15   ` Thomas A. Schmitz [this message]
2008-01-24  8:03     ` Aditya Mahajan
2008-01-24  9:26       ` Thomas A. Schmitz
2008-01-24  9:59     ` Hans Hagen
2008-01-24  0:28 ` Mojca Miklavec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E0EF1C54-F1A0-4D97-A7CB-17D619E70BCC@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).