ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Laurence Finston <lfinsto1@gwdg.de>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>, metapost@tug.org
Subject: Re: [metapost] shading in meta[post/play] & PDF
Date: Wed, 19 Jan 2005 11:59:27 +0100 (MET)	[thread overview]
Message-ID: <Pine.OSF.4.58.0501191142430.98131@gwdu71.gwdg.de> (raw)
In-Reply-To: <41EE2FA8.4080002@guest.arnes.si>

On Wed, 19 Jan 2005, Mojca Miklavec wrote:

>
> How can I make shading inside metapost(play) to produce exactly what's
> in the attached picture (smooth shades). Or more generally: how can I
> "hardcode" some PS/PDF code in .mp, not (yet) supported by metapost(play)?
>

This is a very difficult question.  For an excellent introduction
to shading and other subjects I recommend:

Jones, Huw.
_Computer Graphics through Key Mathematics_.
Springer-Verlag London Limited 2001.
ISBN 1-85233-422-3.

>
> Here's the corresponding PostScript code:
>

Sorry, I don't know PostScript.

>
> >>The spheres drawn directly in PostScript as in the examples above still
> >>have straight lines (well, I agree that with some mathematics it would
> >>be possible to draw them with proper splines as well).
> >>

To the best of my knowledge, spline curves are drawn by means of
calculating short line segments.  You can make the "time" parameter
as small as you like, but you can't make it 0.

I believe plotters can draw genuine curves---and it's a lot more
fun to watch them work (it's like magic).
They're not so great at filling in regions,
though.  Much to my regret, the computer center here got rid of
the plotter.  They're probably as obsolete as the ENIAC now, except
perhaps for very high-quality work.

> Thank you,

My pleasure.

Laurence

  reply	other threads:[~2005-01-19 10:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-15  5:16 Mojca Miklavec
2005-01-15 21:04 ` [metapost] " Laurence Finston
2005-01-19 10:00   ` Mojca Miklavec
2005-01-19 10:59     ` Laurence Finston [this message]
2005-01-19 11:48     ` Hans Hagen
2005-01-20 23:47       ` Mojca Miklavec
2005-01-21 20:55         ` h h extern
2005-01-22  1:36           ` Mojca Miklavec
2005-01-15 22:02 ` [metapost] " Laurence Finston
     [not found] <E1Cpr7m-00053y-00@topo.math.u-psud.fr>
2005-01-15 22:37 ` Laurence Finston

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=Pine.OSF.4.58.0501191142430.98131@gwdu71.gwdg.de \
    --to=lfinsto1@gwdg.de \
    --cc=metapost@tug.org \
    --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).