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

Re: [pygame] multi-width aalines and aacircles

pymike wrote:
> I am currently backporting Pygame Reloaded's SDL_gfx module into Pygame 1.9 Awesome, but it looks like pygame already has most of what's in the sdl_gfx library (rotozoom, aaline, etc.) :S And if SDL_gfx doesn't have line widths, how did pygame achieve it? Would it be possible to duplicate it for aalines?

> As for anti-aliased thick circles, maybe use "O"s. :-)

- pymike
Only the draw functions are exposed. It's possible they are faster than their pygame.draw equivalents since they use MMX. As for an aaline with width, having an algorithm to use would be a start. I do have an anti-aliased circle algorithm I translated to Python. Unfortunately I can't remember where I found it so am hesitant to use it.


Lenard Lindstrom