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

Re: [pygame] Pygame colour and interoperability



On, Sat Jan 26, 2008, Stuart Axon wrote:

> The page here is good; however normalization for conversion to/from
> python standard colours is probably pretty common - is there any
> chance of this being in the color module for pygame 1.8 ?
> 
> http://www.pygame.org/wiki/RGBColorConversion?parent=CookBook
> 
> (+ maybe a color class?)

What for? Wrapping the colorsys module makes the conversion just a bit
slower, that's why I added the small snippet, so people can take care of
it for themselves.

I do not see any sense in doubling the code here. How about the others?

Regards
Marcus

Attachment: pgpaA6QjSGA7f.pgp
Description: PGP signature