[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] rendering anti-alias in argument color with transparency
On Fri, Aug 26, 2011 at 1:25 PM, Aaron Brady <castironpi@xxxxxxxxx> wrote:
Hello,
I've done a lot of pygame.
http://home.comcast.net/~castironpi-misc/pathfinding.1314246907.png
http://home.comcast.net/~castironpi-misc/raster.1313242414.png
http://home.comcast.net/~castironpi-misc/bezier_motion.1291142199.png
And some including C extensions.
http://home.comcast.net/~castironpi-misc/draw.1311647621.png
I'd like to know if anti-aliased objects, in particular the edges of
lines and fonts, can be rendered using transparency instead of
directly blended colors. Specifically, can the function calls draw 4-
tuples of ( r, g, b ) specified in the arguments, plus + ( a, ), the
proportion of intensity determined by the drawing algorithm?
The trick can of course be accomplished with 'numpy', the numerics
package, but it is a heavyweight solution, in particular complicated
and distracting, where programmer time is scarce; and slower, where
run-time environment CPU time is scarce.
Hey,
have you tried out the gfxdraw package? That's got some antialiased drawing functions.