[gradsusr] New features (was Re: Feature suggestion - Add alpha channel / transparency value to 'set rgb')

Stefan Gofferje stefan at saakeskus.fi
Thu Jun 28 15:55:15 EDT 2012


On 06/28/2012 08:24 PM, Brian Doty wrote:
> The new interface to Cairo fully supports transparency, with a new alpha channel setting with "set rgb" where values range from zero to 255.  Even better, there is support for this feature with all forms of output.  I've tested X windows, image, PDF, and Postscript.  SVG is also supposed to work but I've not tested it yet.  There's also pattern fill (and patterns can be transparent).  This all works really well with the new version of shaded contouring that I implemented a year or so ago (gxout shade2).  Which is one of the reasons for going to all the work to implement a new shaded contouring algorithm -- looking down the road to supporting these new features.
> 
> For those interested in the software engineering side of this, I've rewritten the entire back-end interface between the GrADS graphics utilities and the "rendering engine".  It will be possible to link in different rendering engines.  So we will keep the "classic" X windows interface -- for the really good performance -- but it will not support the new features.  And we will have a Cairo interface.  I'm doing this because I suspect we will need an interface to other packages as well (perhaps openGL?)  
> 
> Here's an animation I put together showing off the transparency:
> 
> http://wx.gmu.edu/dev/pwat3.mov

That looks great! Do I see it right that there's now also truetype
support - which means that I can finally have äöüÄÖÜ in the plots? :)

I have been experimenting with the new shading algorithms. On country
scale I don't see much difference in the output but shade2 is about
double as fast as shaded. Is shade2b supposed to create smoother output?
One thing that has been kinda bugging me was that the grid interpolation
still comes out a bit rough on country scale (Finland, NOAA GFS 0.5°).

-S

-- 
Suomen Sääkeskus - Hyvä sää on makuasia

Stefan Gofferje
Haukantie 2 B 5
FIN-37600 Valkeakoski
GSM:       +358 (41) 7290730

http://www.saakeskus.fi/
stefan at saakeskus.fi


--------------------------------------------------------------------------------
This mail was scanned for malware by ClamAV (http://www.clamav.net/)
--------------------------------------------------------------------------------





More information about the gradsusr mailing list