[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] New transformations for future Pygame releases



On Mar 9, 2008, at 10:58 AM, Richard Goedeken wrote:
Brian Fisher wrote:
If  were going to have something like that (a warping function) in
PyGame, I would definitely want it to use anti-grain-geometry
(http://antigrain.com ) rather than use a newly coded up function. AGG
has been around for a very long time, is highly tested, and once you
code up the basic integration issues a huge world of completely
awesome 2d software rendering falls out fairly easily (gaussian blur,
vector shape rendering, textured lines, etc. etc.)

I was previously unaware of this project; thanks for the link. It looks quite impressive. It appears that AGG does not have a function to do what Ian was asking for though - transforming a rectangle to an arbitrary quadrilateral. What it can do, though, is transform a rectange to an arbitrary parallelogram.


Seems like some folks (Fredrik Lundh among them) have made some agg wrappers for python:

http://effbot.org/zone/aggdraw-index.htm
http://tachyon.in/davinci/

The latter one is part of a larger package. Fredrik's includes an api to do affine transforms.

-Casey