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

Re: [pygame] substract rects



Gerrit Holl wrote:
has anyone written code to substract rects yet?
I could do it myself but don't want to reinvent the wheel.
I didn't find it on the Code Repository.
there is no subtract. just as useful could be an 'add'. it seems both these functions would take two rectangles and return a small list or tuple of 0 to 4 rectangles.

i've always thought these would be cool, but never really had a strong need for them. there's even placeholders for them in the rect.c source. :]