I'm making a Pygame library to easily create UI elements and I want to implement multicolored text. I know that I can do this by having multiple text objects but that's pretty unoptimized and I want to know if there's a better way i can do this?
Edit: To make it clearer, i mean something like [RED]this text has to be red[/RED]