Tamas Papp | 18 Apr 2012 11:28
Picon

Coons patch mesh gradients

Hi,

Is it possible to get Coons patch mesh gradients in pgf/tikz?  I am
thinking of something that would render as Type 6/7 gradients in PDF.
Rectangular shapes would be enough for me.

I saw the bilinear interpolation shading in the manual, but it looks
like it was rendered by Tikz using small rectangles.  I wonder if it
would be possible to have these render natively in the appropriate
backend.

Best,

Tamas

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
Mark Wibrow | 18 Apr 2012 12:41
Picon

Re: Coons patch mesh gradients

On 18/04/12 10:28, Tamas Papp wrote:
> Hi,
>
> Is it possible to get Coons patch mesh gradients in pgf/tikz?  I am
> thinking of something that would render as Type 6/7 gradients in PDF.
> Rectangular shapes would be enough for me.
>

Somebody, somewhere suggested a possible implemenation, which I remember 
commenting on, but I cannot find any mention of it anywhere. PGF Plots 
does some stuff with meshes, but not in a general way with a nice tidy 
front end (unless I missed something).

> I saw the bilinear interpolation shading in the manual, but it looks
> like it was rendered by Tikz using small rectangles.  I wonder if it
> would be possible to have these render natively in the appropriate
> backend.

The bilinear interpolation is chucked in the document as post-script 
code and rendered by the viewer, and the results vary accordingly: for 
example, evince tends to be rubbish, okular slightly less rubbish, 
acrobat does it best (as far as I know).

Regards

Mark

> Best,
>
> Tamas
(Continue reading)

Tamas Papp | 18 Apr 2012 16:30
Picon

Re: Coons patch mesh gradients

On Wed, 18 Apr 2012 11:41:11 +0100, Mark Wibrow wrote:

> On 18/04/12 10:28, Tamas Papp wrote:
>> Hi,
>>
>> Is it possible to get Coons patch mesh gradients in pgf/tikz?  I am
>> thinking of something that would render as Type 6/7 gradients in PDF.
>> Rectangular shapes would be enough for me.
>>
>>
> Somebody, somewhere suggested a possible implemenation, which I remember
> commenting on, but I cannot find any mention of it anywhere. PGF Plots
> does some stuff with meshes, but not in a general way with a nice tidy
> front end (unless I missed something).

I found an implementation in pgfplots, maybe that could be backported?
I have never programmed TeX seriously though so I need to understand a
lot more before I can try that myself.

Alternatively, can I extend PGF with constructs that emit new PDF
primitives?  Is there an introduction to this topic?

>> I saw the bilinear interpolation shading in the manual, but it looks
>> like it was rendered by Tikz using small rectangles.  I wonder if it
>> would be possible to have these render natively in the appropriate
>> backend.
> 
> The bilinear interpolation is chucked in the document as post-script
> code and rendered by the viewer, and the results vary accordingly: for
> example, evince tends to be rubbish, okular slightly less rubbish,
(Continue reading)


Gmane