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

[pygame] Filters



Hi,

I think it might be a good idea to include filters in PyGame. 

The laplacian "algorithm" is actually already a filter--the kernel is:
 0, -1,  0
-1,  4, -1
 0, -1,  0
or something similar--so I know SDL can certainly do filter operations. 
It would be nice to be able to specify custom filters like the box blur:
(1/9) *
1, 1, 1
1, 1, 1
1, 1, 1
or a gaussian blur:
(1/273) *
 1,  4,  7,  4,  1
 4, 16, 26, 16,  4
 7, 26, 41, 26,  7
 4, 16, 26, 16,  4
 1,  4,  7,  4,  1
and so on.
Thoughts on including something like this in PyGame?

-Ian