[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Further standardizations



On Sun, 26 Nov 2000, David Clark wrote:

>- right now I guess we're doing new_rect() instead of Rect(), but
>we're still doing pygame.font.font(). Should it be new_font() instead?
>Actually, now that I'm writing significant amounts of code, I'm
>starting to come around to the Rect() idea instead of new_rect() -
>it's embarrassing, since I recently kind of argued for the opposite :(
>The capitals sure make it easy to see my constructors at a glance,
>though.

:-)

>- There's ambiguity about rgb tuples vs. color numbers. For example,
>surface.fill() uses a color number, while font.render() uses a rgb
>tuple. Could we settle on a specific alternative? Personally, I prefer
>the rgb tuple; it's just more intuitive.

Personally I'd like more to use (r,g,b,a) tuples. The color index is not
intuitive, as most places elsewhere use RGB[A]. If possible and without a
performance hit I'd suggest abandoning the color index thing. But it may
be there for a good reason in SDL, so it may be worth being sure about
this?

--------------------+--------------------------------------------------------
Jan 'Chakie' Ekholm |     Balrog New Media    http://www.balrog.fi/
   Linux Inside     | I'm the blue screen of death, nobody hears your screams

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org