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

Re: [pygame] New pygame tutorial: feedback wanted



On 7/4/05, Benjamin Hess <benjamin.hess@xxxxxxxx> wrote:
> Hi
> 
> Are you sure that you want the default colorkey_pixel=(0,0)?:
> 
> 11 *def* load_image(filename, colorkey_pixel = (0, 0)):
> 
> so this:
> 
> 18 *    if* colorkey_pixel* is** not* None:  # select transparent colour
> 
> will only return False when the colorkey is set to None -->
> load_image('test.gif', None) everything else will have a colorkey =
> (0,0) and not None
> 
> 
> Cheers,
> Benjamin
Excellent point.  Thanks!
André