Re: [pygame] using Color() with HSVA

2010-07-31 Thread Jake b
Thanks, works. Thought it was a func returning a tuple. -- Jake

[pygame] using Color() with HSVA

2010-07-30 Thread Jake b
atm I have to use the cookbook to get RGB from HSV color. Docs say: *Color.hsva* *Gets or sets the HSVA representation of the Color.* Color.hsva: Return tuple This fails: pygame.ver '1.9.1release-svn2575' a2 = Color(1,2,4,5) type(a2) type 'pygame.Color' a2 (1, 2, 4, 5) a2.r, a2.a 1, 5

Re: [pygame] using Color() with HSVA

2010-07-30 Thread Luke Paireepinart
On Fri, Jul 30, 2010 at 2:43 AM, Jake b ninmonk...@gmail.com wrote: atm I have to use the cookbook to get RGB from HSV color. Docs say: Color.hsva Gets or sets the HSVA representation of the Color. Color.hsva: Return tuple This fails: a2.hsva (220.0, 75.0, 1.5686274509803921,