|
From: Petr M. <mi...@ph...> - 2006-02-08 08:47:31
|
>> set pm3d interpolate nx,ny
>>
>> That does currently a bit of what you want (but not pixel-wise.)
>
> High nx & ny also mean long processing time when opening such files
> (it takes forever to zoom in and out and to move along such a page)
> and still only suboptimal results.
Yes, it eats a lot of memory.
> This makes the grid "finer", but not smooth.
>
> PostScript (and PDF) support smooth shading, which means that you can
> only define a color in the corners and PostScript will take care for
> "pixels" in the middle.
Wasn't this question discussion during the OpenGL driver? It is a bit
similar (colors for vertices). Aha, not the question here, since we are in
2D projections, not in 3D coordinats.
It would need to add
float r,g,b;
into the definition of gpiPoint.
Then there are these possibilities:
1. Add also
int fade_color
into gpiPoint. Then
void XX_filled_polygon (int points, gpiPoint *corners)
won't change.
2. Change
void XX_filled_polygon (int points, gpiPoint *corners, t_fade *fade)
The last new param will be ignored by most terminals.
3. As term->set_color() is called before each term->filled_polygon(),
the fading option could be passed at this point.
It is probably not difficult to implement. You can have a nice play.
---
PM
|