tingbot / tingbot-python

🔩 Python APIs to write apps for Tingbot
Other
18 stars 9 forks source link

Add alpha capability to screen.fill and screen.rect #21

Closed furbrain closed 8 years ago

joerick commented 8 years ago

Thanks @furbrain. Interesting. I guess there's an extra overhead in the creation of the extra surface, but I don't know of any other way to do it :) If we profile and it's really slow, we could maybe keep a temporary screen-sized surface that's used just for these operations.

Any idea how we might do the same for the text and image calls?

furbrain commented 8 years ago

Text and image calls already use an extra surface, and seem to work perfectly well with transparency. I've just checked using an image with an alpha channel and it renders appropriately. Text already renders correctly. Not sure about lines