ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
Subject: Re: shading with stitching functions
Date: Wed, 27 Dec 2006 18:01:20 +0100	[thread overview]
Message-ID: <4592A6E0.9010805@gmx.net> (raw)
In-Reply-To: <6faad9f00612270843n5a7ef120t10e7196654274bbd@mail.gmail.com>

Mojca Miklavec wrote:
> On 12/27/06, Peter Rolf wrote:
>> Hi Mojca,
>>
>> this is also on my wishlist (and christmas is over). Currently I use
>> several color gradients in a row, to simulate the same effect. But sadly
>> this way is too viewer dependent (rendering is a matter of luck with
>> every new version), not to mention the big size. So if there would be a
>> cleaner solution, I would be a happy man.
>>
>> I'm willing to help, but I haven't looked into specials yet. Give me
>> some time for reading and some more time for understanding... ;)
> 
> With Hans's hint I finally got some kind of result. However, the
> numbers in the stream seem to influence the colors, but not in the way
> I want them to. I have to do some further explorations. Does anyone
> know how to convert PS to PDF without compression?
>
I used

\pdfcompresslevel=0

with your example code.

> Btw: TikZ supports such shadings, so if you don't necessary need a
> metapost graphic, you can take a look at it as well. Here's an example
>>from the manual:
>
I need them as mp graphic, but it shouldn't hurt to look into that.

> \usemodule[tikz]
> \starttext
> \pgfdeclarehorizontalshading{myshadingA}
> {1cm}{rgb(0cm)=(1,0,0); color(2cm)=(green); color(4cm)=(blue)}
> \pgfuseshading{myshadingA}
> \stoptext
> 
> (I've just found out that it uses another aproach for "sampled
> functions", perhaps I'll have more chances to figure out how to
> implement it that way.)
> 
> Mojca
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

      reply	other threads:[~2006-12-27 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-26 22:48 Mojca Miklavec
2006-12-27  8:44 ` Hans Hagen
2006-12-27 13:01 ` Peter Rolf
2006-12-27 16:43   ` Mojca Miklavec
2006-12-27 17:01     ` Peter Rolf [this message]

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=4592A6E0.9010805@gmx.net \
    --to=indiego@gmx.net \
    --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).